add desktop detection for onsize in listbox