I ventured into all and all reports of problems with resizing columns, div properties, and many other things! In any case, this very VERY simple piece of code pushes me to the wall, and I wonder if I canβt answer?
<script type="text/javascript"> $(document).ready(function () { $("#text").load("<%= Model.FileLocation %>"); $.fn.colorbox.resize(); }); </script> <div id="text"></div>
Above is the code (which, I think, should work like a charm). I tried using $ .get and set the resizing in the callback using timeouts and separating things with functions.
I also confirmed that nothing is broken, the text is loading (executing a warning with $ ("# text"), because the message shows me the loaded text. I can also specify the width and / or height for resizing, and they work, but I I can not do this based on the loaded content.
Sorry for the long post ... any ideas why in the world this thing will not change?
source share