Dialog and Messagebox position

Answered
0
0

Is it possible prevent that dialogs and messageboxes (or any part of it) are dragged outside the browsers’ view ?
That means dialogs and messageboxes should be visible completely & in total in the browser.

  • You must to post comments
Best Answer
1
0

Yes, we can add an option as a feature request. I have also attached a javascript mixin that can patch the existing classes and override the __computeMoveCoordinates method. All movable widgets in Wisej use the qx.ui.core.MMovable mixin.

See attached my.MMovablePatch.js. Put it in /Platform as an embedded resource and uncomment the WisejResources attribute in AssemblyInfo.cs. If using VB.NET, rename the file to Platform.my.MMovablePath.js since VB.NET doesn’t use the folder to build the resource name.

This post as well as this one (https://wisej.com/support/question/desktop-taskbar-position) provide some internals and show how flexible the wisej/qooxdoo system is. The full source code of all the javascript classes we use is here: https://github.com/iceteagroup/wisej-qx

 

  • Tobias
    Thank you very much. Your solution works exactly as needed. Maybe you can consider to add this behaviour as new feature for a upcoming release ?
  • You must to post comments
0
0

Hi Tobias,

The issue number is

WJ-8649

with description

Add option for DialogBox / MessageBox to avoid being dragged outside the browsers view

  • Tobias
    Thank you very much.
  • You must to post comments
0
0

Dear support,
should I open up a feature request for considering this patch as a new feature for a upcoming release ?

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.