in image properties pop window:
the preview area is NOT resize when the dialog window is resized.
and
how to set the original width and height value into the text as default? only need click the 'reset size' button?
thanks.
Thu, 04/28/2011 - 08:40
#1
Re: a bug in image properties window
I'm not sure what do you mean by "as default" but yes, to set image size to its actual (original) size you just need to click "reset size" icon.
Re: a bug in image properties window
the image's width and height is default set to the input text is hommization.
I modified the image/dialogs/image.js to resolve this like :
from :
var F=this.getDialog(),G='',H=this.id=='txtWidth'?'width':'height',I=D.getAttribute(H);if(I)G=E(I,G);G=E(D.getStyle(H),G);this.setValue(G);}
to:
var F=this.getDialog(),G='',H=this.id=='txtWidth'?'width':'height',I=D.getAttribute(H);if(I)G=E(I,G);G=E(D.getStyle(H),G);if(G==''){if(H=='width')this.setValue(F.originalElement.$.width);else this.setValue(F.originalElement.$.height);}else this.setValue(G);}