Point size = editorList.computeSizeHint();
editorList.setSize(size.x, size.y);
- /* Tizen */
- // Point location = ctf.toDisplay(getChevronLocation(ctf));
-
- Point alignPos = getChevronLocation(ctf); // right-bottom of the last item
- ToolBar chevronTb = null;
- try {
- chevronTb = ctf.getChevron();
- } catch (IllegalAccessError e) {
- // Fall through
- }
-
- if (chevronTb != null) {
- // align part to the center of chevron button
- alignPos.x += chevronTb.getBounds().x - alignPos.x; // spacing between item and tool bar
- alignPos.x += (chevronTb.getSize().x - size.x) / 2;
- }
-
- Point location = ctf.toDisplay(alignPos);
- /* ===== */
+ Point location = ctf.toDisplay(getChevronLocation(ctf));
Monitor mon = ctf.getMonitor();
Rectangle bounds = mon.getClientArea();
if (location.x + size.x > bounds.x + bounds.width) {