We keep a small set of local patches that we make during development and
debugging,
the biggest issue with this is that after we have these fixes for
ourselves we often forget to report to you or fail to make a good
testcase. (especially since we don't have the time to create simple
reproduction cases that do not include dozens of our own sourcefiles)
 
So i guess i'll post a few of the simple ones here once in a while.
 
prevent dragging while resizing a window
 
sometimes while resizing a qx drawn window, a componentn inside the
window supporting dragging would start dragging too.
 
/frontend/framework/source/class/qx/ui/resizer/MResizable.js
 
    _onmousedown : function(e)
    {
      if (this._resizeNorth || this._resizeSouth || this._resizeWest ||
this._resizeEast)
      {
        // enable capturing
        this.setCapture(true);
 
+        // prevent startdrag event
+        e.preventDefault();
+
        // activate global cursor
        this.getTopLevelWidget().setGlobalCursor(this.getCursor());
 
 
 
DateChooserButton raises exceptions when changing the locale as long as
its chooser window isn't at least shown once yet.
we set the locale from the server because a user can change it at
runtime from an external system
 
\frontend\framework\source\class\qx\ui\component\DateChooserButton.js
 
    _changeLocale : function(dateFormatSize)
    {
      if (qx.util.Validation.isInvalidObject(this.getTargetWidget())) {
        throw new Error("TargetWidget must be set which must be an
instance of qx.ui.core.Widget and has setValue and getValue method.");
      }
 
      var date = null;
 
      try {
        date =
this._dateFormat.parse(this.getTargetWidget().getValue());
      } catch(ex) {}
 
      this._dateFormat = new
qx.util.format.DateFormat(qx.locale.Date.getDateFormat(dateFormatSize));
 
      if (!date) {
        return;
      }
 

+      if (qx.ui.component.DateChooserButton.__chooser != null)
+      {      
        qx.ui.component.DateChooserButton.__chooser.setDate(date);
+      }
      this.getTargetWidget().setValue(this._dateFormat.format(date));
    },
 
 
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to