GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit d648eb8b authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko

display-box: Account for RTL when updating margins

Use margin-end instead of margin-right and always set margin-start to 0
to prevent leftover margins after changing direction with savestate
manager open.
parent fc380eca
......@@ -148,9 +148,10 @@ private class Games.DisplayBox : Gtk.Bin {
private void update_margin () {
var width = get_allocated_width ();
display_bin.margin_start = 0;
if (width > 900)
display_bin.margin_right = savestates_list.get_allocated_width ();
display_bin.margin_end = savestates_list.get_allocated_width ();
else
display_bin.margin_right = 0;
display_bin.margin_end = 0;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment