You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 17, 2024. It is now read-only.
Hi,
when working with DDExpandableButton (which is a great entrypoint by the way) I stumbled upon the non-obvious behaviour when you only want to present an image with toggleMode:YES and no "buttons". This is interesting if all you want to show is the image in leftTitle.
First of all, initWithPoint:leftTitle:buttons: can't handle either nil or an empty NSArray as input for buttons. A quick fix would be
if ([buttons count])
in setButtons: before adding to _labels.
But the tricky part only comes then :-) With a @"" as button and a normal 20x20 image in leftTitle, the whole DDExpendableButton is suddenly only 20 pixels in width total. The only way I found visually pleasing working was to quickly whip up an empty view with a width of 18px like so: