Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » how does one set height of contributed part (view)
how does one set height of contributed part (view) [message #564373] Wed, 04 November 2009 22:16 Go to next message
Dave Combs is currently offline Dave CombsFriend
Messages: 21
Registered: July 2009
Junior Member
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 22:59 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
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
Previous Topic:site manifest editor (web ui)
Next Topic:Stack elements being something other than an MItemPart?
Goto Forum:
  


Current Time: Sun Dec 21 09:22:12 GMT 2014

Powered by FUDForum. Page generated in 0.01712 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software