You need to add a layout manager for St.Widget, here's the patch:

--- /home/csoriano/Downloads/notesSam/view.js
+++ /home/csoriano/.local/share/gnome-shell/extensions/
no...@sam.sambull.org/view.js
@@ -6,6 +6,7 @@
 const Lang = imports.lang;
 const Mainloop = imports.mainloop;
 const St = imports.gi.St;
+const Clutter = imports.gi.Clutter;

 const IconGrid = imports.ui.iconGrid;
 const Main = imports.ui.main;
@@ -195,7 +196,7 @@
         this._box.add_actor(this._title);
         this._box.add_actor(this._entry);

-        this.actor = new St.Widget();
+       this.actor = new St.Widget({ layout_manager: new
Clutter.BinLayout() });
         //this.actor.set_size(0,0)
         this.actor.add_actor(this._box);




2013/11/27 Sam Bull <sam.hack...@sent.com>

> Does nobody have any idea how to fix the odd padding on this?
>
> On Mon, 2013-11-11 at 22:47 +0000, Sam Bull wrote:
> > Having a small problem with the visual appearance of my extension.
> >
> > I've previously been using an St.BoxLayout widget for my notes. But, it
> > seems in 3.10, this will no longer allow me to overlap the close
> > buttons. To work around this, I've put the BoxLayout into a new
> > St.Widget.
> >
> > However, this seems to have resulted in the notes spreading halfway into
> > the spacing to the right and below of the note.
> >
> > http://sambull.org/Screenshot1.png
> > http://sambull.org/Screenshot2.png
> >
> > Screenshot2 is the old version, and is how it should look.
> > You can see in Screenshot1 that the notes continue too far to the right
> > and below. This results in the bottom looking like it's been cut off.
> >
> > The only difference between these versions, is changing this:
> >         this.actor = new St.Widget();
> >         this.actor.add_actor(this._box);
> > To this:
> >         this.actor = this._box;
> >
> > If you'd like to check the code, I'm attaching that as well, the code in
> > question is located in view.js around lines 190-200.
> >
> > http://sambull.org/no...@sam.2.sambull.org.zip
>
> _______________________________________________
> gnome-shell-list mailing list
> gnome-shell-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gnome-shell-list
>
>
_______________________________________________
gnome-shell-list mailing list
gnome-shell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-shell-list

Reply via email to