overviewControls: Always allocate the actor its full size
This is the new Clutter way -- if the actor wants to adjust its alignment, it will do it itself with its alignment flags.
This commit is contained in:
parent
dbf3bb112c
commit
f5a9dbb348
@ -67,7 +67,7 @@ const SlideLayout = new Lang.Class({
|
|||||||
|
|
||||||
let actorBox = new Clutter.ActorBox();
|
let actorBox = new Clutter.ActorBox();
|
||||||
actorBox.x1 = box.x1 + alignX;
|
actorBox.x1 = box.x1 + alignX;
|
||||||
actorBox.x2 = actorBox.x1 + child.x_expand ? availWidth : natWidth;
|
actorBox.x2 = actorBox.x1 + availWidth;
|
||||||
actorBox.y1 = box.y1;
|
actorBox.y1 = box.y1;
|
||||||
actorBox.y2 = actorBox.y1 + availHeight;
|
actorBox.y2 = actorBox.y1 + availHeight;
|
||||||
|
|
||||||
@ -314,11 +314,6 @@ const DashSlider = new Lang.Class({
|
|||||||
|
|
||||||
this._dash = dash;
|
this._dash = dash;
|
||||||
|
|
||||||
// SlideLayout reads the actor's expand flags to decide
|
|
||||||
// whether to allocate the natural size to its child, or the whole
|
|
||||||
// available allocation
|
|
||||||
this._dash.actor.x_expand = true;
|
|
||||||
|
|
||||||
this.actor.x_expand = true;
|
this.actor.x_expand = true;
|
||||||
this.actor.x_align = Clutter.ActorAlign.START;
|
this.actor.x_align = Clutter.ActorAlign.START;
|
||||||
this.actor.y_expand = true;
|
this.actor.y_expand = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user