Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 319634

Summary: Contents of Combo are bigger than its size
Product: [Eclipse Project] Platform Reporter: Aleksandr Kravets <aleksandr.kravets>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe, remy.suen
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard: stalebug
Attachments:
Description Flags
combo with content wider than its size none

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.