[ui:dialog] set max-width to $(window).width()
[ui:cwd] for touch device, open contextmenu by long-tap