Page MenuHomePhabricator

Issue centering dialog windows
Closed, ResolvedPublic

Description

Working on pinentry, gpg passphrase dialog and other, I am having issues with it centering properly. At first it was not centering on all screens. It would be centered on the top left corner, which offsets the window to the bottom right vs being dead center of screen.

Changing order of call to elm_win_center on 1 of 4 screens did center the dialog/window. On the 2nd 0:1 display of a dual display system. On 0:0 it is offset. On my laptop using 1 display at a time. It is offset on both external and internal. Even if I unplug the 2nd display and use just the internal. It still does not center on my laptop. The main code is basic

  win = elm_win_util_dialog_add(NULL,"pinentry","enter pin");
....
  elm_win_resize_object_add(win,obj);
  evas_object_show(win);
  elm_win_center(win,EINA_TRUE,EINA_TRUE);

Full code can be seen in in the repo on github

wltjr added a project: efl.
wltjr added a subscriber: devilhorns.

Not sure if this is something fixed in EFL or not.

From IRC 05-12-2017
06:21 <@raster> wltjr: fixed the centering before show

Looks like its related to this commit/fix
https://git.enlightenment.org/core/efl.git/commit/?id=3a602462971861d9b7a65aa4aa795f3ee182ab44

wltjr closed this task as Resolved.May 12 2017, 8:14 AM
wltjr claimed this task.