Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Strange behaviour in widget sizing.
Strange behaviour in widget sizing. [message #77941] Tue, 11 March 2008 18:37 Go to next message
Tiago is currently offline TiagoFriend
Messages: 55
Registered: July 2009
Member
Hi

I came across a strange problem in my application. I have a dialog (jface)
with several text boxes and labels inside it (like 3 rows of text boxes).
The first time I open the dialog the 3rd line text boxes are croped by half.
I close it and open it again and everything is fine. If I shutdown the
application (equinox) and run it again, it appens again. It's not a problem
with a specific dialog because it happens on the others too.

This is using Firefox. Also I'm running this application standalone in
equinox (not inside Eclipse).

I send an attached snapshot with the problem.

Any ideas?

Tiago


  • Attachment: Snap.png
    (Size: 9.49KB, Downloaded 119 times)
RE: Strange behaviour in widget sizing. [message #77964 is a reply to message #77941] Tue, 11 March 2008 19:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

I guess this is a problem with textsize determination and dialogs. The
textsize determination can only take place on the client side, so the
first time a text occurs in an application the system have to make an
educated guess. So if your dialog opens the first time the text sizes on
the it are all estimated. RAP automatically calculates the correct sizes
returns them to the server recalculates the layout and update the
client. The sizes of the calculated texts are stored on the server, so
the next time the texts are needed to correct size is available.


(see also http://wiki.eclipse.org/WidgetToolkit, Text size calculations)
Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Tiago [mailto:tiago.bugzilla@gmail.com]
Bereitgestellt: Dienstag, 11. März 2008 19:38
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Strange behaviour in widget sizing.
Betreff: Strange behaviour in widget sizing.


Hi

I came across a strange problem in my application. I have a dialog
(jface) with several text boxes and labels inside it (like 3 rows of
text boxes).
The first time I open the dialog the 3rd line text boxes are croped by
half.
I close it and open it again and everything is fine. If I shutdown the
application (equinox) and run it again, it appens again. It's not a
problem with a specific dialog because it happens on the others too.

This is using Firefox. Also I'm running this application standalone in
equinox (not inside Eclipse).

I send an attached snapshot with the problem.

Any ideas?

Tiago
Re: Strange behaviour in widget sizing. [message #78011 is a reply to message #77964] Wed, 12 March 2008 07:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

great - half of my explanations were cut off by sending the answer (grr!).

Note that this storage works over session boundaries, to understand how
please refer to the link I mentioned in my previous post.

The problem with dialogs is that the Dialog size gets calculated to fit its
content. So the recalculation of the Dialog's size doesn't take place at the
moment, which leads to the clipping of the dialog's content area you've
encounter. Note that this doesn't happen very often on a running system
(why? - this should be described also in the document the link refers to).



Ciao

Frank

"Frank Appel" <fappel@innoopract.com> schrieb im Newsbeitrag
news:00a801c883af$b14f5160$c8078b0a@Abulafila...
> Hi,
>
> I guess this is a problem with textsize determination and dialogs. The
> textsize determination can only take place on the client side, so the
> first time a text occurs in an application the system have to make an
> educated guess. So if your dialog opens the first time the text sizes on
> the it are all estimated. RAP automatically calculates the correct sizes
> returns them to the server recalculates the layout and update the
> client. The sizes of the calculated texts are stored on the server, so
> the next time the texts are needed to correct size is available.
>
>
> (see also http://wiki.eclipse.org/WidgetToolkit, Text size calculations)
> Ciao
> Frank
>
> -----Urspr
Re: Strange behaviour in widget sizing. [message #78089 is a reply to message #78011] Wed, 12 March 2008 09:11 Go to previous messageGo to next message
Tiago is currently offline TiagoFriend
Messages: 55
Registered: July 2009
Member
Hi Frank,

Thanks for you reply. I've narrowed the problem down to my custom theme.
There is probably some issue with the font sizes I'm using. I'm going to
take a deep look and post the results later.

Thanks again.

Tiago

"Frank Appel" <fappel@innoopract.com> wrote in message
news:fr7v3q$kfh$1@build.eclipse.org...
> Hi,
>
> great - half of my explanations were cut off by sending the answer (grr!).
>
> Note that this storage works over session boundaries, to understand how
> please refer to the link I mentioned in my previous post.
>
> The problem with dialogs is that the Dialog size gets calculated to fit
> its content. So the recalculation of the Dialog's size doesn't take place
> at the moment, which leads to the clipping of the dialog's content area
> you've encounter. Note that this doesn't happen very often on a running
> system (why? - this should be described also in the document the link
> refers to).
>
>
>
> Ciao
>
> Frank
>
> "Frank Appel" <fappel@innoopract.com> schrieb im Newsbeitrag
> news:00a801c883af$b14f5160$c8078b0a@Abulafila...
>> Hi,
>>
>> I guess this is a problem with textsize determination and dialogs. The
>> textsize determination can only take place on the client side, so the
>> first time a text occurs in an application the system have to make an
>> educated guess. So if your dialog opens the first time the text sizes on
>> the it are all estimated. RAP automatically calculates the correct sizes
>> returns them to the server recalculates the layout and update the
>> client. The sizes of the calculated texts are stored on the server, so
>> the next time the texts are needed to correct size is available.
>>
>>
>> (see also http://wiki.eclipse.org/WidgetToolkit, Text size calculations)
>> Ciao
>> Frank
>>
>> -----Urspr
Re: Strange behaviour in widget sizing. [message #78679 is a reply to message #78089] Tue, 18 March 2008 15:31 Go to previous message
Tiago is currently offline TiagoFriend
Messages: 55
Registered: July 2009
Member
I was using Trebuchet MS as the font for my widgets, changed it to
Tahoma and all was fine.

Tiago

Tiago wrote:
> Hi Frank,
>
> Thanks for you reply. I've narrowed the problem down to my custom theme.
> There is probably some issue with the font sizes I'm using. I'm going to
> take a deep look and post the results later.
>
> Thanks again.
>
> Tiago
>
> "Frank Appel" <fappel@innoopract.com> wrote in message
> news:fr7v3q$kfh$1@build.eclipse.org...
>> Hi,
>>
>> great - half of my explanations were cut off by sending the answer (grr!).
>>
>> Note that this storage works over session boundaries, to understand how
>> please refer to the link I mentioned in my previous post.
>>
>> The problem with dialogs is that the Dialog size gets calculated to fit
>> its content. So the recalculation of the Dialog's size doesn't take place
>> at the moment, which leads to the clipping of the dialog's content area
>> you've encounter. Note that this doesn't happen very often on a running
>> system (why? - this should be described also in the document the link
>> refers to).
>>
>>
>>
>> Ciao
>>
>> Frank
>>
>> "Frank Appel" <fappel@innoopract.com> schrieb im Newsbeitrag
>> news:00a801c883af$b14f5160$c8078b0a@Abulafila...
>>> Hi,
>>>
>>> I guess this is a problem with textsize determination and dialogs. The
>>> textsize determination can only take place on the client side, so the
>>> first time a text occurs in an application the system have to make an
>>> educated guess. So if your dialog opens the first time the text sizes on
>>> the it are all estimated. RAP automatically calculates the correct sizes
>>> returns them to the server recalculates the layout and update the
>>> client. The sizes of the calculated texts are stored on the server, so
>>> the next time the texts are needed to correct size is available.
>>>
>>>
>>> (see also http://wiki.eclipse.org/WidgetToolkit, Text size calculations)
>>> Ciao
>>> Frank
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Tiago [mailto:tiago.bugzilla@gmail.com]
>>> Bereitgestellt: Dienstag, 11. März 2008 19:38
>>> Bereitgestellt in: eclipse.technology.rap
>>> Unterhaltung: Strange behaviour in widget sizing.
>>> Betreff: Strange behaviour in widget sizing.
>>>
>>>
>>> Hi
>>>
>>> I came across a strange problem in my application. I have a dialog
>>> (jface) with several text boxes and labels inside it (like 3 rows of
>>> text boxes).
>>> The first time I open the dialog the 3rd line text boxes are croped by
>>> half.
>>> I close it and open it again and everything is fine. If I shutdown the
>>> application (equinox) and run it again, it appens again. It's not a
>>> problem with a specific dialog because it happens on the others too.
>>>
>>> This is using Firefox. Also I'm running this application standalone in
>>> equinox (not inside Eclipse).
>>>
>>> I send an attached snapshot with the problem.
>>>
>>> Any ideas?
>>>
>>> Tiago
>>>
>>>
>>>
>>
>
>
Previous Topic:Demo Download
Next Topic:SWT graphics classes are internal in RWT (org.eclipse.swt.internal.graphics)
Goto Forum:
  


Current Time: Sat Apr 27 00:40:49 GMT 2024

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

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

Back to the top