I’ve recently been using a Repeater to create a horizontal menu - the “Fit to Content in HTML” is a must…
I wanted the First and Last items of the menu to have a different Widget Style, and whilst I can attach to “OnItemLoad” and determine which is the first and last quite easily, I obviously can’t dynamically set the Widget Style as Axure doesn’t support this.
The solution was to have multiple different Items within the repeater and Show/Hide the ones applicable for the first, middle and last states… all fine, hacky workaround but it should work…
HOWEVER, it doesn’t work… using Show/Hide, Set Opacity, Move, Set Size etc. all seem to force the “Fit to Content in HTML” to break and the item to be it’s original size - so all items become the same width…
The reason this feels like a bug especially is because in Axure itself the repeater supports and renders this perfectly… but when published it has each button stuck at it’s original width.
My workaround involves setting the Disabled state on items I want to hide, and this state has a opacity value of 0 as well as sending this item (to back) - this works… but now I can’t actually have a proper disabled state which I would like to have in my prototype as well - so there are bugs here.
https://hrvbn5.axshare.com/#c=2
BUG - Fit to Content in HTML.rp (114.0 KB)