Re: [flexcoders] Browser Bug ? Display 2 scrollbars

2008-09-13 Thread Pan Troglodytes
It would probably help a lot if you can post a small test app the shows what
you're talking about.  Keep it as simple as possible to illustrate your
problem.

But my first instinct is that it's kind of an age-old problem in programming
with scrollbars.  Say you have an element that is 500 pixels wide, just wide
enough to show everything it contains.  Then it gets a lot of info in it,
which causes it to need a vertical scrollbar.  Well, that scrollbar then
steals some width from that 500, so that now the element can only be, say,
484 pixels wide because there's a scrollbar taking up the next 16 pixels.
Well, now if you have scrollbars set to automatically pop up when the
element isn't wide enough to display the text width, the horizontal
scrollbar shows up, too.

The fix for this in flex is to set the horizontal widths as a % of the
parent's width.  That way when the vertical scrollbar pops up, the element
and hence its children will resize to be smaller to accomodate the
scrollbar.

If this isn't clear, post your example and I can show you the changes to fix
it.

On Wed, Sep 10, 2008 at 6:19 AM, itdanny2002 [EMAIL PROTECTED] wrote:

   I create Vbox with fixed width. Then I add Canvas
 inside. Afterwards, I add TextArea as child. Scrollbar
 policy of canvas is off.

 If there are many childs but within boundary e.g. 700 pixel.
 No scrollbar. If it is over screen height e.g. 900 pixel.
 It displays scrollbars. Anyway, it displays TWO: Vertical and
 Horizontal. I try to set MaxWidth but still has 2 scrollbars
 instead of just vertical.

 More information. I add TextArea child programmingly. I trace
 the width of Canvas. The width is longer than what I expect
 even in startup mode.

 Any idea ?

  




-- 
Jason


[flexcoders] Browser Bug ? Display 2 scrollbars

2008-09-10 Thread itdanny2002
I create Vbox with fixed width. Then I add Canvas 
inside. Afterwards, I add TextArea as child. Scrollbar 
policy of canvas is off.

If there are many childs but within boundary e.g. 700 pixel. 
No scrollbar. If it is over screen height e.g. 900 pixel.
It displays scrollbars. Anyway, it displays TWO: Vertical and 
Horizontal. I try to set MaxWidth but still has 2 scrollbars 
instead of just vertical.

More information. I add TextArea child programmingly. I trace 
the width of Canvas. The width is longer than what I expect 
even in startup mode. 

Any idea ?



[flexcoders] browser() bug?

2007-04-03 Thread herklano
Is this a bug or am i doing something wrong?

i have a script where i call a browser() method and it all goes well
in debug mode, but when i compile normally it doesn't work!

var imageTypes:FileFilter = new FileFilter(Images (*.jpg, *.jpeg,
*.gif), *.jpg; *.jpeg; *.gif); 
var fileTypes:Array = new Array(imageTypes);
SMCDadosFile.browse(fileTypes);



RE: [flexcoders] browser() bug?

2007-04-03 Thread Alex Harui
Start adding trace statements and look in flashlog.txt to see what it
had to say.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of herklano
Sent: Tuesday, April 03, 2007 4:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] browser() bug?



Is this a bug or am i doing something wrong?

i have a script where i call a browser() method and it all goes well
in debug mode, but when i compile normally it doesn't work!

var imageTypes:FileFilter = new FileFilter(Images (*.jpg, *.jpeg,
*.gif), *.jpg; *.jpeg; *.gif); 
var fileTypes:Array = new Array(imageTypes);
SMCDadosFile.browse(fileTypes);