Is there a trick or something to getting the width of a DynamicForm? I've got a form I create without a specific size - it sizes itself based on the content, which is DS-driven. Great. But I want to find out the size of the form at runtime, and I can't - it always returns 100 as the width, no matter what. The Developer Console correctly shows its width (in the high 200s), but everything I try gives 100. I've been using getWidth(), but I've also tried getDefaultWidth(), getOffsetWidth() and getVisibleWidth(). All return 100. I even tried using getRect.getWidth() - still 100. I tried getRight() - getLeft(), and that gave 100.
So is there something obvious I'm doing wrong?
So is there something obvious I'm doing wrong?
Comment