set maximum size of dictionary popup window in corresponding with device dpi;
fix dictionary_flyout layout