ラベル resizablecontrolbehavior の投稿を表示しています。 すべての投稿を表示
ラベル resizablecontrolbehavior の投稿を表示しています。 すべての投稿を表示

2012年3月28日水曜日

Resizable Control bug?

The following code:

_lining.style.backgroundImage = 'url(invalid)'; // Keeps IE from ignoring the content-free element

in ResizableControlBehavior class is not working well with IE6. The image is being requested by browser every event the control fires (mousedown, mouseup, mousemove etc.). Check out your browser's status bar while resizing the control (watch it carefully as the text blinks very quickly) or use Nikhil's Web Development Helper with http logging on to see the requests.

There are many ways to fix this. I use solid black background with 20% opacity for additional effect.

Thanks for reporting this. Could you file an issue with this information atwww.codeplex.com?

Choose "Atlas Control Toolkit" then "Issues".

Thanks!

ResizableControlBehavior sizing to 0 in initialize, why?

This line is in the ResizableControlBehavior.initialize code:

this._resizeControl(0, 0, 0, 0);

Why? It makes me do fancy things in my resize handler to avoid this call, but I'm wondering if I'm missing some intended logic here.

Any thoughts on this? It breaks the resize control in IE for divs that use CSS to get width.
It sets up the internal state and fires the initial resizing event. Why is this a problem?
In IE with a textarea that is set to width: 100% in the CSS, this results in a 0 size text area.
Have you tried nesting the TEXTAREA in a DIV similar to how the sample page does with the image example (which has width=100%, height=100%)?