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 36190 - ViewTabLayoutModel returns wrong coordinates
Summary: ViewTabLayoutModel returns wrong coordinates
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC All
: P2 blocker (vote)
Assignee: David Simonek
URL:
Keywords: T9Y
: 36182 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-18 19:03 UTC by Jiri Skrivanek
Modified: 2008-12-22 17:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test case to see tabs coordinates. (2.39 KB, text/plain)
2003-09-18 19:05 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2003-09-18 19:03:20 UTC
To determine a point where to click to invoke
context menu on a tab I call
TabLayoutModel.getX(index), getY(), getH(), getW()
methods. I found out that they return wrong
values.  For example for 3 tabs in explorer mode
they return intersecting rectangles. Try to have 3
TC in explorer mode and run attached code. The
result can be as follows:

java.awt.Rectangle[x=0,y=0,width=118,height=21]
java.awt.Rectangle[x=118,y=0,width=118,height=21]
java.awt.Rectangle[x=235,y=0,width=117,height=21]

You can see that x coordinates of rectangle are
intersecting (0-117, 118-235, 235-353). You can
see the problem when you move the mouse over tabs.
The next tab is highlighted already when the mouse
is on previous tab. It also can cause problems in
automated tests.
Comment 1 Jiri Skrivanek 2003-09-18 19:05:18 UTC
Created attachment 11663 [details]
Test case to see tabs coordinates.
Comment 2 David Simonek 2003-10-17 14:08:26 UTC
date p[ostponed to the end of october. If this is problem please let
me know.
Comment 3 David Simonek 2003-11-07 11:49:45 UTC
moved to FCS list (not enough time), fortunately not needed before
merge from the end user side, I hope automated tests side could wait
as well. Thx.
Comment 4 Jiri Skrivanek 2003-11-07 13:16:03 UTC
It will be fixed after merge, so it cannot block issue 36145.
Comment 5 David Simonek 2003-11-13 17:55:05 UTC
fixed in main trunk.
/cvs/core/windows/src/org/netbeans/core/windows/view/ui/tabcontrol/ViewTabLayoutModel.java,v
 new revision: 1.3; previous revision: 1.2
Comment 6 David Simonek 2003-11-13 17:57:09 UTC
*** Issue 36182 has been marked as a duplicate of this issue. ***
Comment 7 Jiri Skrivanek 2004-01-22 17:08:12 UTC
Verified.