how does one set height of contributed part (view) [message #564373] |
Wed, 04 November 2009 17:16  |
Eclipse User |
|
|
|
I'm trying a layout where I have a control area (unfortunately can't use a toolbar) that I'm representing with a View. I'd like that control area to butt up against a "main" area below it, where the control area is to be exactly 100 pixels high. I've created my Application.xmi with a
<children policy="VerticalComposite">
<children xsi:type="application:MContributedPart"... (for the view)
</children>
<children policy="HorizontalComposite">
<children xsi:type="application:MSashForm" policy="horizontalSash">
...
</children>
</children>
</children>
The question: this automatically takes over 50% of the height with the contributed view, instead of 100 pixels. The view code internally has stuff saying that the maximum size should be 100 pixels high. I also tried setting 'height' as a CSS property for the view, but that did nothing either.
Does anybody have an idea how I can force the height of this contributed view to be fixed to 100 pixels? I *really* don't want to have to put in a SashForm and provide a weight, since that's a percentage rather than a fixed value and will let the view grow vertically.
Thanks,
Dave
|
|
|
Re: how does one set height of contributed part (view) [message #564393 is a reply to message #564373] |
Wed, 04 November 2009 17:59  |
Eclipse User |
|
|
|
Hi,
I don't think we have an expression for this yet. Today the layout used
is simply a FillLayout => 50% for each child component.
The only idea I have right now to implement this is that we are useing a
GridLayout instead so that we could use things like widthHint/heightHint
for a CompositeRenderer, Eric?
Tom
Dave Combs schrieb:
> I'm trying a layout where I have a control area (unfortunately can't use
> a toolbar) that I'm representing with a View. I'd like that control
> area to butt up against a "main" area below it, where the control area
> is to be exactly 100 pixels high. I've created my Application.xmi with a
> <children policy="VerticalComposite">
> <children xsi:type="application:MContributedPart"... (for the view)
> </children>
> <children policy="HorizontalComposite">
> <children xsi:type="application:MSashForm" policy="horizontalSash">
> ...
> </children>
> </children>
> </children>
>
> The question: this automatically takes over 50% of the height with the
> contributed view, instead of 100 pixels. The view code internally has
> stuff saying that the maximum size should be 100 pixels high. I also
> tried setting 'height' as a CSS property for the view, but that did
> nothing either.
>
> Does anybody have an idea how I can force the height of this contributed
> view to be fixed to 100 pixels? I *really* don't want to have to put in
> a SashForm and provide a weight, since that's a percentage rather than a
> fixed value and will let the view grow vertically.
>
> Thanks,
> Dave
|
|
|
Powered by
FUDForum. Page generated in 0.03816 seconds