~guadalinex-members/gnome-shell-extension-classic-menus/gecos

« back to all changes in this revision

Viewing changes to src/gnome-shell-classic-menus@emergya.com/extension.js

  • Committer: Antonio Hernández
  • Date: 2012-02-09 12:01:45 UTC
  • Revision ID: ahernandez@emergya.com-20120209120145-txixy4q2r8pq940j
Fix the direction of the submenu when it's close to the edge of the screen.

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
 
139
139
    // If the submenu border is out of the screen open
140
140
    // in the other direction.
141
 
    if (sourceX + sourceW >= monitor.width) {
 
141
    if (sourceX + sourceW >= monitor.width  && sourceX >= 2 * sourceW) {
142
142
        this._boxPointer._arrowSide = St.Side.RIGHT;
143
143
    }
144
144