Bug 259540 - Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -1 resizing sticky hover
Summary: Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with w...
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Bogdan Gheorghe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-22 22:44 EST by Ketan Patel CLA
Modified: 2016-08-22 11:47 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ketan Patel CLA 2008-12-22 22:44:13 EST
Build ID: M20080911-1700

Steps To Reproduce:
1. Show Javadoc hover and move mouse over it to make it sticky.
2. Resize it so width is zero.
3. you will see following printed on console....
(SWT:18294): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -1 and height 275


More information:
Comment 1 Dani Megert CLA 2009-01-06 05:44:34 EST
I cannot reproduce as we have an older Linux which doesn't allow to resize to 0 and even if it would I would not expect negative width.

Moving to SWT for investigation.
Comment 2 Bogdan Gheorghe CLA 2009-01-06 09:32:04 EST
I tried this out on my RHEL5 box using the 3.5 M4 build and wasn't able to resize the javadoc hover. (The hover gets scroll bars once it becomes sticky but it doesn't let me resize). What GTK version are you using? Can you try reproducing this with the 3.5 M4 build?
Comment 3 Markus Keller CLA 2009-01-07 08:59:27 EST
I tried it with 3.4.1 on the latest Ubuntu (8.10), and I also couldn't resize Javadoc hovers to zero width (and hence didn't get the console message).

> I [..] wasn't able to resize the javadoc hover.

Our workaround for bug 23980 only allows you to resize hovers with toolbars. It looks like the Browser widget is not available on your machine. In this case, we fall back to a styled text widget without toolbar.
Comment 4 Eric Williams CLA 2016-08-22 11:47:32 EDT
I can't reproduce this bug.