wiln / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

WindowShade resizing issues #172

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a WindowShade that contains some elements that change size or add
new elements when clicked.
2. Close the WindowShade.
3. Reopen the WindowShade and try resizing the elements.

What is the expected output? What do you see instead?
The WindowShade should resize (grow or shrink) to fit the size of the
elements inside it.  Instead, the size doesn't change after closing and
reopening the WindowShade.

What version of the product are you using? On what operating system?
flexlib 2.4 and Windows XP SP2

Please provide any additional information below.
See attached file for example.

Original issue reported on code.google.com by terpcri...@gmail.com on 7 Nov 2008 at 6:01

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by dmcc...@gmail.com on 8 Jan 2009 at 6:09

GoogleCodeExporter commented 9 years ago
This is related to the fact that WindowShade uses a resize effect to 
open/close. The
resize effect sets the height property. And when you set the height property, 
you
block automatic resizing.

You can solve this by extending the WindowShade and set the height property to 
NaN
once the resize effect has finished.

See also:
http://tjoadesign.nl/blog/?p=123

Original comment by eugenet...@gmail.com on 5 Feb 2010 at 9:23

GoogleCodeExporter commented 9 years ago
There's another way of fixing this without overriding the runResizeEffect 
method as the resize event will bubble. 
I've written it up here:
http://blog.classsoftware.com/index.cfm/2010/2/9/How-to-fix-FlexLib-WindowShade-
resize-issues

Original comment by justinmc...@gmail.com on 9 Feb 2010 at 4:41