~tkluck/ubuntu/precise/gnome-shell/lp883443

« back to all changes in this revision

Viewing changes to js/ui/popupMenu.js

  • Committer: Jeremy Bicha
  • Date: 2011-09-28 00:41:45 UTC
  • mto: This revision was merged to the branch mainline in revision 43.
  • Revision ID: jbicha@ubuntu.com-20110928004145-qul9m3n18o37jvo1
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
320
320
                }
321
321
                extraWidth = availWidth - naturalWidth;
322
322
            } else {
323
 
                if (child.span == -1)
324
 
                    availWidth = box.x2 - x;
325
 
                else
 
323
                if (child.span == -1) {
 
324
                    if (direction == St.TextDirection.LTR)
 
325
                        availWidth = box.x2 - x;
 
326
                    else
 
327
                        availWidth = x - box.x1;
 
328
                } else {
326
329
                    availWidth = naturalWidth;
 
330
                }
327
331
                extraWidth = 0;
328
332
            }
329
333