Author Topic: Problem with a delay of positioning of anchors  (Read 3621 times)

Evgeny

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Problem with a delay of positioning of anchors
« on: March 10, 2016, 12:49:56 PM »
I have a panel on which several buttons are vertically located.
Each following button is attached by an anchor to a bottom of previous.
At changes of height of the button, a position have to be recalculated.
But positions of buttons change not instantly, for one update, and as if in animation, i.e. it turns out that buttons as if approach to each other.
How to get rid of this effect that ALL elements were positioned for one update?

https://youtu.be/LV_G4CYSsp4


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with a delay of positioning of anchors
« Reply #1 on: March 12, 2016, 07:57:22 AM »
Nested anchors like that are not a good idea. You should be either using a grid, or a table instead.

Evgeny

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Problem with a delay of positioning of anchors
« Reply #2 on: April 23, 2016, 03:51:50 AM »
The problem unfortunately remained.
I have made through the table, but at change or quantities of lines or width in Label, process of reformatting of the sizes is swept VERY up. And if in Label there is a lot of text, then it borrows to 0,5 seconds or more!
Whether there is opportunity at the beginning to create all content of the table, and then already to show him?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with a delay of positioning of anchors
« Reply #3 on: April 25, 2016, 12:52:26 PM »
Sorry I have a hard time understanding what you wrote there... Borrows 0.5 seconds? Already to show him? Swept very up? No idea what any of that means...