Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319634 - Contents of Combo are bigger than its size
Summary: Contents of Combo are bigger than its size
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-12 16:44 EDT by Aleksandr Kravets CLA
Modified: 2022-02-01 20:34 EST (History)
2 users (show)

See Also:


Attachments
combo with content wider than its size (3.12 KB, image/png)
2010-07-12 16:46 EDT, Aleksandr Kravets CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksandr Kravets CLA 2010-07-12 16:44:50 EDT
Build Identifier: Build id: M20090211-1700

When the size of contents of the Combo is bigger than its size and Combo is selected the drop down of contents goes beyond the width of the combobox. I am attaching screenshot for reference.

Reproducible: Always
Comment 1 Aleksandr Kravets CLA 2010-07-12 16:46:03 EDT
Created attachment 174096 [details]
combo with content wider than its size
Comment 2 Felipe Heidrich CLA 2010-07-13 08:43:02 EDT
Correct behaviour in my opnion, the Combo was made smaller than its content (combo#computeSize() was not used to allocate size for the combo).

What do you think the right behaviour should be in this case ?
Comment 3 Aleksandr Kravets CLA 2010-07-13 11:11:41 EDT
I was thinking there could be a way to force all contents of the combo to be within the boundaries of the combo's size.
May be I have to rethink how combo is used in my case.
Comment 4 Felipe Heidrich CLA 2010-07-13 12:18:14 EDT
(In reply to comment #3)
> I was thinking there could be a way to force all contents of the combo to be
> within the boundaries of the combo's size.

How would you present that in the UI, clip the content and nothing, or clip the content and add an horizontal scrollbar (which I don't think is possible).

The right thing to do, if possible, is set the size of combo large enough to show all the content (combo.pack()).
Comment 5 Aleksandr Kravets CLA 2010-07-13 13:21:23 EDT
It makes sense what you are saying. I am trying to use combo in a way that is not intended to be used. However, as you mentioned clipping the content and adding an horizontal scrollbar would probably a nice feature if at all possible.
Comment 6 Eclipse Webmaster CLA 2019-09-06 15:32:07 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 7 Eclipse Genie CLA 2022-02-01 20:34:44 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.