This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 113820 - I18N - new welcome does not resize horizontally and no scrollbar
Summary: I18N - new welcome does not resize horizontally and no scrollbar
Status: VERIFIED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Welcome (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-08-27 04:15 UTC by Ken Frank
Modified: 2008-08-15 20:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
image (91.83 KB, image/gif)
2007-08-28 15:58 UTC, Ken Frank
Details
image (1.82 MB, image/gif)
2007-08-28 15:59 UTC, Ken Frank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2007-08-27 04:15:28 UTC
using new welcome screen, running in ja locale on solaris, at 14pt font, with pseudo localized netbeans.

there is a vertical scrollbar that appears when all text cannot show

but there is not a horizontal sbar, which means user might need to resize the welcome window
all the way across the entire ide, or enlarge ide itself, to be able to show all parts.

(this is not about initial startup, but when other  windows are used in the ide main window.

or if user needs to lessen welcome window size since they want to use other windows like explorer,
navigator, etc.  Editor has both horizontal and vertical scrollbars when needed as does explorer, navigator.
Comment 1 Stanislav Aubrecht 2007-08-27 14:27:06 UTC
reassigning to jano - pls evaluate and decide whether we want horizontal scrollbar in the new welcome screen
Comment 2 jrojcek 2007-08-28 15:47:14 UTC
Please attach a screenshot  showing the wrong behavior. If the horizontal scroll bar is suppressed, then the content should wrap. But I need to see it how it 
really looks like.
Comment 3 Ken Frank 2007-08-28 15:56:43 UTC
attaching 2 gifs; I'm not seeing wrapping happening.

ken.frank@sun.com
Comment 4 Ken Frank 2007-08-28 15:58:46 UTC
Created attachment 47631 [details]
image
Comment 5 Ken Frank 2007-08-28 15:59:21 UTC
Created attachment 47632 [details]
image
Comment 6 jrojcek 2007-08-29 11:44:58 UTC
I don't think that the truncated labels are a big issue. Is it possible to come up with shorter labels when localizing?

And Stando, can we set a threshold number to 600 pixels? If the available width is smaller and preferred width of the welcome page is bigger, then show the 
horizontal scroll bar? It's something like a web page you can make narrower, but at some point it would show the scroll bar.
Comment 7 Stanislav Aubrecht 2007-08-29 12:20:20 UTC
> And Stando, can we set a threshold number to 600 pixels? If the available width is smaller and preferred width of the
welcome page is bigger, then show the 
> horizontal scroll bar? It's something like a web page you can make narrower, but at some point it would show the
scroll bar.

done: 
/cvs/ide/welcome/src/org/netbeans/modules/welcome/WelcomeComponent.java,v  <--  WelcomeComponent.java
new revision: 1.18; previous revision: 1.17
Comment 8 Ken Frank 2007-08-29 16:16:24 UTC
shorter labels when localizing - thats not seem possible since translators should not need
to construct or force some shorter labels, and also since in some languages for which
nb will be translated, the words might be longer than in english anyway.

I think its really just another resize kind of situation, that windows should allow showing
all of their contents or provide another way, like sbars to do it.

ken.frank@sun.com
Comment 9 Ken Frank 2007-08-29 16:17:45 UTC
shorter labels when localizing - thats not seem possible since translators should not need
to construct or force some shorter labels, and also since in some languages for which
nb will be translated, the words might be longer than in english anyway.

I think its really just another resize kind of situation, that windows should allow showing
all of their contents or provide another way, like sbars to do it.

ken.frank@sun.com
Comment 10 Ken Frank 2007-10-03 19:40:46 UTC
I see horizontal sbar appear at some point, but then it goes away when widen the start page overall window,
but when this happens, the pseudo localized labels are still not all seen.

it seems the horiz sbar should still be present.

ken.frank@sun.com
Comment 11 Ken Frank 2007-10-15 16:52:09 UTC
seen on windows also, not even using a --fontsize argument.

ken.frank@sun.com
Comment 12 jrojcek 2007-10-17 12:55:44 UTC
Stando, is it a problem with the implementation? Or is it a design problem?
Comment 13 Stanislav Aubrecht 2007-10-18 11:54:20 UTC
i've improved the horizontal scrolling a bit. the minimum width is 600 pixels and it's also increased if the font size
is increased. so the whole content should be visible if bigger fonts are used.
there's not much i can do about localized labels being too long. if i increase the minimum width then we'll get
horizontal scrollbar even in english version of the ide on 1024x768 resolutions.
please reopen if you think this fix is not good enough.

/cvs/ide/welcome/src/org/netbeans/modules/welcome/ui/AbstractTab.java,v  <--  AbstractTab.java
new revision: 1.3; previous revision: 1.2
done
Checking in ui/Tabs.java;
/cvs/ide/welcome/src/org/netbeans/modules/welcome/ui/Tabs.java,v  <--  Tabs.java
new revision: 1.6; previous revision: 1.5
done
Checking in content/RSSFeed.java;
/cvs/ide/welcome/src/org/netbeans/modules/welcome/content/RSSFeed.java,v  <--  RSSFeed.java
new revision: 1.36; previous revision: 1.35
done
Checking in WelcomeComponent.java;
/cvs/ide/welcome/src/org/netbeans/modules/welcome/WelcomeComponent.java,v  <--  WelcomeComponent.java
new revision: 1.21; previous revision: 1.20
Comment 14 Antonin Nebuzelsky 2007-10-18 12:54:47 UTC
> horizontal scrollbar even in english version of the ide on 1024x768 resolutions

This would be unacceptable. We have to avoid horizontal scrollbar in the majority of configurations.
Comment 15 Ken Frank 2007-10-20 17:21:34 UTC
from last comments:
i've improved the horizontal scrolling a bit. the minimum width is 600 pixels and it's also increased if the font size
is increased. so the whole content should be visible if bigger fonts are used.
there's not much i can do about localized labels being too long. if i increase the minimum width then we'll get
horizontal scrollbar even in english version of the ide on 1024x768 resolutions.
please reopen if you think this fix is not good enough.

--> whole content is not visible if fontsize is increased (and using pseudolocalization) - that is,
the getting started, extend your ide section on the left part of the welcome - not all characters
are shown; but cant the welcome window be invoked so that it figures out dynamically what the longest string is
in that section, and show that size ?  that way, welcome does not need to figure on what might be max length
of translated labels, but will just use that info in any one case to figure out its size per sub section ?
(its really the same as in original gif, except now the multibyte does show ok)

I realize a horizontal sbar will not help here, since we are talking about specific sections of the
welcome window, not the whole window.


though think a horiz sbar would help so users would not need to manually resize the window to take
up much of the entire ide window, which is the case when its invoked at larger font size or if they
need to manaully resize it to be able to see all of it (since there is no horiz sbar)

in the past welcome window had horizontal sbar - is there a problem with having it ?

ken.frank@sun.com
Comment 16 Stanislav Aubrecht 2007-10-22 11:41:15 UTC
> but cant the welcome window be invoked so that it figures out dynamically what the longest string is
> in that section, and show that size ?

i spent a day or two trying to achieve just that but without luck. the problem is the text in 'extend your ide' section
and also feed description whose default size is one long line of text.
anybody else can take a shot at fine tuning the start page horizontal size, i'll be happy to learn something new:)
Comment 17 Ken Frank 2007-10-22 16:39:35 UTC
I'll reopen this for now based on prev comments, and team can then decide about it.

if the one long strings could have line breaks in them, would that help ?

ken.frank@sun.com
Comment 18 Ken Frank 2007-11-07 02:26:52 UTC
didnt see answer to previous questions -- 
if the one long strings could have line breaks in them, would that help ?

or will there be no more changes to welcome screen for nb6 ?

ken.frank@sun.com
Comment 19 Stanislav Aubrecht 2007-11-07 12:29:26 UTC
i think it wouldn't help either. that section couldn't grow when the start page is enlarged and if a bigger font was
used then that section would be too wide and horizontal scroll bar would be needed again.
Comment 20 Stanislav Aubrecht 2008-01-03 13:47:34 UTC
nb60 is already released so i'm closing this issue.
ken, start a new issue pls, if you still insist on the changes in welcome page layout in future nb releases.
Comment 21 Ken Frank 2008-08-15 20:40:39 UTC
verifying in context of 6.5 - the horiz and vert sbars appear when
needed

the internal left and right sections of the windows dont resize except by user
manually resizing the entire window but based on discussion below that seems
like it will be ok.