| Summary: | Shell is no longer moved to fit Display bounds | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Ben Schulz <yaxay> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | ivan |
| Version: | unspecified | Keywords: | needinfo |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Ben Schulz
Ben, I don't quite understand what is the problem. Could you create a snippet that demonstrate the issue? Ben, we really need a snippet to understand what is the problem. Any progress on it? Ivan, I am really sorry that my answer is so late in coming. The following snippet exhibits the described behavior. Shell s = new Shell(SWT.BORDER); s.setLocation(500, 500); s.setSize(200, 200); s.open(); If the Browser is only 600 pixels in height then with rwt 1.3.1 the Shell would be moved up by 100 pixels in order to fit. In 1.4.1 it remains at location (500, 500). (In reply to comment #3) > If the Browser is only 600 pixels in height then with rwt 1.3.1 the Shell would > be moved up by 100 pixels in order to fit. In 1.4.1 it remains at location (500, > 500). Now I understand. I've checked with 1.3.2 and I can confirm you observation. But I'm not sure if this is a bug at all. The previous behavior wasn't added with a purpose (it was original qooxdoo framework behavior). From SWT point of view, when you open a Shell in a specific location, this location is not changed automatically. I agree with Ivan. When the Shell location is set explicitly, the framework should not change it. If you need this feature, you can query the display size at startup using Display#getBounds() and re-position the shell programmatically as needed. Would that work for you? I agree also. ;) And yes, we can move it manually. I just needed to know whether this change was made intentionally/would stick. Feel free to close as INVALID/WONTFIX. Thanks (In reply to comment #6) > Feel free to close as INVALID/WONTFIX. |