Did you try setting the column width to 1*?
On Nov 23, 2010, at 9:57 AM, Bojan Vučinić wrote:
> Works like a charm. Many thanks.
>
> If you could just tell me how to fill the width by the TableView in the first
> row, that would be great.
>
>
> Greg Brown said the following on 23/11/2010 14:43:
>>
>> What type of container is the parent of the second scroll pane? Looks like
>> maybe it is a vertical box pane? Try using a TablePane with two rows: the
>> first one should have a height of -1 (the default), and the second should
>> have a height of 1*.
>>
>> On Nov 23, 2010, at 4:17 AM, Bojan Vučinić wrote:
>>
>>> Hi Greg,
>>>
>>> Thanks for your help.
>>> The form transparency issue has been solved by setting
>>> styles="{backgroundColor:null}" on the ScrollPane, as per your instructions.
>>>
>>> However, the scroll bars issue is still present.
>>> In one form which is closer to the top of the hierarchy (Window - TablePane
>>> - TabPane - StackPane - ScrollPane - Form) the scroll bars appear when
>>> needed (see scroll1.png).
>>> But in another, where the form is a bit down the hierarchy (Window -
>>> TablePane - TabPane - BoxPane - ScrollPane - BoxPane - Form the scroll bars
>>> don't appear (see scroll2.png).
>>>
>>> Any idea why this is happening?
>>> Best regards,
>>> Bojan
>>>
>>>
>>> Greg Brown said the following on 23/11/2010 01:05:
>>>>
>>>> Hi Bojan,
>>>>
>>>> Does the form actually exceed the size of the scroll pane? If not, then
>>>> the scroll bars would not appear. If you want scroll bars to always
>>>> appear, you can set the scroll bar policy to "always".
>>>>
>>>> By default, scroll panes have a white background - you can set the
>>>> background color to null to make it transparent.
>>>>
>>>> Hope this helps,
>>>> Greg
>>>>
>>>> On Nov 22, 2010, at 3:04 PM, Bojan Vučinić wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I'm building a Pivot 2.0 application with Scala.
>>>>> I've encountered the following problem:
>>>>> In my bxml file I have:
>>>>> > Stack Pane
>>>>> >> Image
>>>>> >> ScrollPane
>>>>> >>> Form
>>>>> if I define the ScrollPane with no attributes the form is transparent,
>>>>> the image is visible in the background (desired behavior), but the form
>>>>> is not getting the scroll bars.
>>>>> If I add a preferredHeight attribute to the ScrollPane The form is not
>>>>> transparent (undesired behavior) but the scrollbars are active.
>>>>>
>>>>> Am I doing something wrong? I'd like to have a transparent form with the
>>>>> background image and the scroll bars when needed.
>>>>> Any help is appreciated,
>>>>> Bojan
>>>>>
>>>>>
>>>>> --
>>>>> Dr. Bojan Vučinić
>>>>> President, Ma-CAD
>>>>> [email protected]
>>>>> IM: bvucinic (Skype)
>>>>> http://fr.linkedin.com/in/bvucinic
>>>>>
>>>>> Maintenance Concept Adjustment & Design 31, rue Chanzy
>>>>> Paris, Ile de France 75011 France
>>>>> Work: +33 (6) 14 15 36 70
>>>>> Mobile: +33 (6) 14 15 36 70
>>>>> Fax: +33 (1) 53 01 38 28
>>>>> See who we know in common Want a signature like this?
>>>>
>>> <scroll1.png><scroll2.png>
>>