EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Alfred on May 02, 2018, 06:13:31 AM



Title: Maximize on double clicking the title bar of the dialog
Post by: Alfred on May 02, 2018, 06:13:31 AM
I have tried to use this code for maximizing the dialog, but it does not work. One addition I would like is to change the cursor style when we hover over the title bar.

Code:
var dlg = $('#dlg');
dlg.dialog('header').bind('dblclick', function(e){
var opts = dlg.dialog('options');
if (opts.maximized){
dlg.dialog('restore');
} else {
dlg.dialog('maximize');
}
})

Please help.

Regards,
Dove


Title: Re: Maximize on double clicking the title bar of the dialog
Post by: stworthy on May 02, 2018, 06:11:46 PM
Please look at this example http://code.reloado.com/ajoduz3/edit#preview. It works fine.


Title: Re: Maximize on double clicking the title bar of the dialog
Post by: Alfred on May 02, 2018, 06:57:22 PM
How do I change the cursor style when hover over the title bar? The default cursor style is move cursor. How can I change it to a normal cursor? Thanks for the demo. I used the onLoad, now it works.