This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch 4.0.x
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/4.0.x by this push:
     new cd70b02  [OPENMEETINGS-1991] close cursor for flexible text box is 
fixed
cd70b02 is described below

commit cd70b021c6fc1160adcbcecad10dc7f93d6d26d8
Author: Maxim Solodovnik <solomax...@gmail.com>
AuthorDate: Thu Feb 7 18:08:52 2019 +0700

    [OPENMEETINGS-1991] close cursor for flexible text box is fixed
---
 .../main/java/org/apache/openmeetings/web/room/wb/raw-wb-area.js    | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/raw-wb-area.js
 
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/raw-wb-area.js
index e6e8d90..84a0891 100644
--- 
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/raw-wb-area.js
+++ 
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/raw-wb-area.js
@@ -13,6 +13,7 @@ var DrawWbArea = function() {
                window.originalDrawControl = 
fabric.Object.prototype._drawControl;
                window.originalGetRotatedCornerCursor = 
fabric.Canvas.prototype._getRotatedCornerCursor;
                window.originalGetActionFromCorner = 
fabric.Canvas.prototype._getActionFromCorner;
+               window.originalGetCornerCursor = 
fabric.Canvas.prototype.getCornerCursor;
                fabric.Object.prototype._drawControl = function(control, ctx, 
methodName, left, top, styleOverride) {
                        switch (control) {
                                case 'mtr':
@@ -47,6 +48,11 @@ var DrawWbArea = function() {
                        }
                        return window.originalGetActionFromCorner.call(this, 
alreadySelected, corner, e);
                };
+               fabric.Canvas.prototype.getCornerCursor = function(corner, 
target, e) {
+                       return 'textbox' === target.type && 'tr' === corner
+                               ? this.defaultCursor
+                               : window.originalGetCornerCursor.call(this, 
corner, target, e);
+               }
        }
 
        function refreshTabs() {

Reply via email to