-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List item menu #1929
base: master
Are you sure you want to change the base?
List item menu #1929
Conversation
@@ -1371,6 +1374,7 @@ var TranslateComposer = exports.TranslateComposer = Composer.specialize(/** @len | |||
translateEvent.initCustomEvent("translate", true, true, null); | |||
translateEvent.translateX = this._translateX; | |||
translateEvent.translateY = this._translateY; | |||
translateEvent.targetElement = this.element; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this to workaround the fact that today the target is the translate composer itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
this.disabled = !hasLeftButtons && !hasRightButtons; | ||
} | ||
|
||
this._setButtonBoundaries(this._rightButtons, 'marginLeft'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is modifying the DOM in wilDraw, could it be moved at the beginning of draw instead?
var hasLeftButtons = this._leftButtons && this._leftButtons.length > 0, | ||
hasRightButtons = this._rightButtons && this._rightButtons.length > 0; | ||
|
||
this._updateButtonPositions(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is modifying the DOM in wilDraw, could it be moved at the beginning of draw instead?
dragElementStyle[ListItemMenu.cssTransition] = 'none'; | ||
|
||
// Hide not sliding options. | ||
if (isLeftSideOpened) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe use .toggle() instead?
@marchant PR updated |
Limit of 3 per side
No description provided.