Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Dimension of Custom Components
Dimension of Custom Components [message #58323] Wed, 07 November 2007 14:50 Go to next message
Martin Dilger is currently offline Martin DilgerFriend
Messages: 54
Registered: July 2009
Member
Hi,

I just realized, that a Custom Component i wrote does not integrate right
into our Application.
The Component Overlapps the Components which are near to it, so I suspect,
that the widht and height are not correctly reported.
Where can I adjust this? IŽm not so experienced in JS and I cant find a
way to fix this.

Thank you

Martin
Re: Dimension of Custom Components [message #58347 is a reply to message #58323] Wed, 07 November 2007 14:55 Go to previous messageGo to next message
Martin Dilger is currently offline Martin DilgerFriend
Messages: 54
Registered: July 2009
Member
It is even worse, it seems
as if the component isnŽt recognized by the layout at all.
What can that be?

Thank you

Martin
Re: Dimension of Custom Components [message #58445 is a reply to message #58347] Wed, 07 November 2007 18:16 Go to previous messageGo to next message
Martin Dilger is currently offline Martin DilgerFriend
Messages: 54
Registered: July 2009
Member
Hi,

I managed to get it working by overwriting computeSize() in my widget.
The 100 $ Question is now, does I always have to provide an own
implementation
of computeSize?

Kind regards

Martin Dilger
Re: Dimension of Custom Components [message #58658 is a reply to message #58445] Thu, 08 November 2007 14:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

not always but very often :-)

If your control is made of texts for example you have to determine the sizes
of those texts add margin, padding, border etc. to get the preferred size of
your control (This is the size in which position and size of those texts are
optimal for a proper layout). This is nothing that can be done automatically
by the system. But if your control extends Composite for example and your
control makes use of the composite pattern using a certain layout for
control positioning into the control the original computeSize method of the
Composite should be sufficient.

Ciao
Frank


"Martin" <mdilger@splitshade.de> schrieb im Newsbeitrag
news:448e63aa83b7d7135d97c887c0fb5136$1@www.eclipse.org...
> Hi,
>
> I managed to get it working by overwriting computeSize() in my widget.
> The 100 $ Question is now, does I always have to provide an own
> implementation
> of computeSize?
>
> Kind regards
>
> Martin Dilger
>
Re: Dimension of Custom Components [message #58682 is a reply to message #58658] Thu, 08 November 2007 14:22 Go to previous message
Martin Dilger is currently offline Martin DilgerFriend
Messages: 54
Registered: July 2009
Member
Hi Frank,

thank you!

Greetings

Martin
Previous Topic:Problem when var w = wm.findWidgetById with a custom widget on IE
Next Topic:RAP ecosystem
Goto Forum:
  


Current Time: Fri Apr 19 13:25:02 GMT 2024

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

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

Back to the top