forked from OpenGamers/abaddon
control icon pos in css
This commit is contained in:
parent
02741f2c1b
commit
f60cea2216
@ -120,6 +120,8 @@
|
|||||||
|
|
||||||
.message-input-browse-icon {
|
.message-input-browse-icon {
|
||||||
color: #b9bbbe;
|
color: #b9bbbe;
|
||||||
|
margin-left: 5px;
|
||||||
|
margin-top: 11px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* i dont think theres a way to circumvent having to do this to adjust around the browse icon */
|
/* i dont think theres a way to circumvent having to do this to adjust around the browse icon */
|
||||||
|
@ -176,11 +176,10 @@ bool ChatInputTextContainer::GetChildPosition(Gtk::Widget *child, Gdk::Rectangle
|
|||||||
Gtk::Requisition min, req;
|
Gtk::Requisition min, req;
|
||||||
child->get_preferred_size(min, req);
|
child->get_preferred_size(min, req);
|
||||||
|
|
||||||
// yummy hardcoded values
|
// let css move it around
|
||||||
pos.set_x(5);
|
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_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)));
|
pos.set_height(std::max(min.height, std::min(main_alloc.get_height(), req.height)));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user