AlexForever Posted March 31, 2025 Posted March 31, 2025 In uniAlignmentClient mode, when doesn't exist events OnCollapse or OnExpand, property Collapsed not updated. In our logic we rely on this property. In order for this to work, we have to make empty handlers OnCollapse/OnExpand. Maybe there is another way or to reconsider this? procedure TUniCustomPanel.InitCollapseEvents; var sSide: Boolean; begin sSide := Assigned(UniParent) and (UniParent.AlignmentControl = uniAlignmentServer); if sSide or Assigned(FOnCollapse) then JSAddEvent('collapse', ['w', '%0.getWidth()', 'h', '%0.getHeight()'], H_JSOnCollapse); if sSide or Assigned(FOnExpand) then JSAddEvent('expand', ['w', '%0.getWidth()', 'h', '%0.getHeight()'], H_JSOnCollapse); end; I think it's worth considering a universal mechanism for subscribing to Ajax events. Some list of all events and checkboxes on them. Whoever needs them can uncheck them so they don't come. For all components. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.