Hmm ... I've taken out all my widths and set maximized to true, but I'm
still having problems. Perhaps It's the components I have.

My top level component is a tab control - but the first tab pane will
only stretch out to the length of some text I have in the tab pane - it
doesn't care how much room the two split panes and a box pane in the tab
might want - it cuts them off if they are longer than the text - and
when you re-size, nothing scales - it all stays fixed - so you can't
even drag a larger window to fully see the controls.

Any chance you could point me to the source of the component explorer demo?

- Mark

On 9/14/10 9:53 PM, Greg Brown wrote:
> Hi Mark, 
> 
> Yes, this is definitely possible - in fact, it is Pivot's default layout 
> behavior. You may find the tutorial section on Layout Containers helpful:
> 
>   http://pivot.apache.org/tutorials/layout-containers.html
> 
> Here's one example:
> 
>   http://pivot.apache.org/demos/component-explorer.html
> 
> Unfortunately, if you run it on a Mac, you'll see a flicker effect as you 
> resize the browser window. This is due to a low-level AWT issue that can be 
> controlled on Windows (and Linux, I believe) but not on the Mac.  :-(  It 
> doesn't affect desktop applications, though - only applets.
> 
> One thing you'll probably want to do is be sure to set the "maximized" 
> property of your root window to true. Otherwise, the window won't expand to 
> take the full width and height of the display, and will always assume its 
> preferred size.
> 
> In order to get the fluid resizing behavior in a browser, you'll need to 
> allow the user to resize the applet - this is most easily done by setting the 
> width and height of the applet to 100% so it occupies the entire client area 
> of the browser window. When run as a desktop application, a maximized window 
> will always resize with the native frame.
> 
> The FAQ entry you mentioned refers to Pivot's ability to scale the UI - try 
> holding down the Control and Shift keys and use the mouse wheel while the 
> mouse is positioned over a Pivot app. You'll see what I mean.  :-)
> 
> Hope this helps!
> 
> Greg
> 
>> I've been working with pivot for a little while now (overall, it's been
>> a nice experience), and I still cannot see how to make a nice UI that
>> scales with the amount of screen real estate available - like most
>> modern desktop applications.
>>
>> I'd kind of come to the conclusion that this wasn't really possible -
>> and that pivot focused much more on fixed width applet type applications.
>>
>> The best I could find was trying to hack around using tables and the
>> ability to do width by percentage with columns - but that doesn't seem
>> like a hopeful path.
>>
>> However, looking in the FAQ, I see this:
>>
>> "Pivot applications are inherently resolution independent. Bitmapped and
>> vector images are interchangeable, and the entire user interface can be
>> scaled to take advantage of high-resolution displays or for
>> accessibility purposes."
>>
>> This almost sounds like I can make a nice fluid UI that uses the space
>> available. So what am I missing? The components I am using do not scale
>> based on window size - something that's quite easy to accomplish with
>> Swing or any other UI tookits I've used.
>>
>> Any help?
>>
>> Thanks a lot, great software
>>
>> - Mark
> 

Reply via email to