It’s a “bug/missing feature” that’s been around a long time:
OK, I went down some rabbit holes trying to figure out just what is going on with this. It does look like something buggy is happening when trying to auto-fit a widget to its text width when anything else is done in a repeater’s OnItemLoad event that might affect the size or contents of that repeater cell.
I did arrive at three different methods for doing this --each with its set of benefits and disadvantages.
First approach uses a dynamic panel with states for First, Middle, Last. It approxi…
There are a few different ways of working around it:
This is a known problem in Axure. You can set a widget to “Fit to width” so its width dimension is set automatically based on its text value, but it will only “get fit” on the initial load. If the text changes, the widget dimensions don’t change. In a repeater, it would get fit for the first row, but not changed for subsequent rows. You can read more and see some workarounds and solutions in this thread:
But it looks like you’ve already done something like this… On the Add button you have so…
Hi!
This can be done with some javascript as shown in the sample file below. Notes:
Hitting enter or causing the field to lose focus will trigger the javascript
The javascript (in OnLostFocus) expects the field to be named ‘entryField’ and the widget the text ends up in to be named ‘textTarget’. If you want the names to be different for whatever reason, edit the javascript where the comments tell you to.
There are two variables in the javascript that need to match the padding style that you…
Funny thing tho’ - as a programmer, I like to do the complete opposite, boiling everything down to the smallest I can in order to keep things uncluttered.
Even though I’m not the original poster I’d like to say thanks again for your input on this stuff - this one’s going to help me too.
Here’s my stripped-back version of what you’ve supplied:
column_arrow_position - JavaScript optomized.rp (75.2 KB)