Skip to content
Snippets Groups Projects
Commit 347c270c authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Make arrangeImages place windows centered in their slot

parent 586d878a
No related branches found
No related tags found
No related merge requests found
......@@ -135,6 +135,11 @@ function arrangeImages(ids, y_coord) {
x_coord = width * i + spacing * (i+1);
logd("placing image at " + x_coord + " / " + y_coord);
setLocation(x_coord, y_coord, width, height);
getLocationAndSize(_, _, window_width, window_height);
if (window_width != width) {
delta = (width - window_width) / 2;
setLocation(x_coord + delta, y_coord, width, height);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment