diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-08-10 00:03:04 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-08-10 00:03:04 -0400 |
commit | f60cea2216dd9677cb9105364cdaa778a0c187db (patch) | |
tree | 5e6eb53504de0207d1d9b62d3629d853fcb8649e /src | |
parent | 02741f2c1beb499b188f6840c5384eb9c4f06c6d (diff) | |
download | abaddon-portaudio-f60cea2216dd9677cb9105364cdaa778a0c187db.tar.gz abaddon-portaudio-f60cea2216dd9677cb9105364cdaa778a0c187db.zip |
control icon pos in css
Diffstat (limited to 'src')
-rw-r--r-- | src/components/chatinput.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/chatinput.cpp b/src/components/chatinput.cpp index 87892e0..2466965 100644 --- a/src/components/chatinput.cpp +++ b/src/components/chatinput.cpp @@ -176,11 +176,10 @@ bool ChatInputTextContainer::GetChildPosition(Gtk::Widget *child, Gdk::Rectangle Gtk::Requisition min, req; child->get_preferred_size(min, req); - // yummy hardcoded values - pos.set_x(5); + // let css move it around + pos.set_x(0); + pos.set_y(0); pos.set_width(std::max(min.width, std::min(main_alloc.get_width(), req.width))); - - pos.set_y(12); pos.set_height(std::max(min.height, std::min(main_alloc.get_height(), req.height))); return true; |