You've set padding between the HBox and its content.

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of cesarerocchi
Sent: Monday, May 19, 2008 4:50 AM
To: [email protected]
Subject: [flexcoders] HBox - Padding left the scroll bar does not work
as expected



Hi,

I have the following code:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " 
layout="absolute" >

<mx:HBox maxWidth="100" height="100" paddingLeft="20">
<mx:Image source="logo.png" maxWidth="150"/>
<mx:Image source="logo.png" maxWidth="100"/> 
</mx:HBox>

</mx:WindowedApplication>

The paddingLeft is expected to create a "gap" of 20px between the border
of the 
application and the hBox. And in some sense it does. The images are 20px
distant with 
respect to the border, but the scroll bar of the images is very close to
the border.
Is there any way to set the padding of the scroll bar as well?

Thanks in advance,

-c.



 

Reply via email to