Author Topic: UIStretch Wrong calculation on widged  (Read 1863 times)

Malzbier

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 93
    • View Profile
UIStretch Wrong calculation on widged
« on: September 21, 2012, 04:04:17 AM »
I have a UISliced Sprite, that sprite should have a relative size to a UISprite.

So i created a UIStretch at the UISliced Sprite and added the UISprite to the "Widget Container" field.
Style = Both
Relative size x= 0.5 y= 0.5

The UISprite have the size if x=345.6 y= 53.76 Z)=1

The new set / calculated size of the UISlized Sprite is X= 2468.571 y=384

My personal understanding the result should be X= 172,8 y=26,88.

Whats is going wrong with this?

Greetings Malzbier

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIStretch Wrong calculation on widged
« Reply #1 on: September 21, 2012, 08:17:38 AM »
The two sprites must be beside each other (same root object). I believe Phil fixed this limitation, so it should be in the next update.

PhilipC

  • Guest
Re: UIStretch Wrong calculation on widged
« Reply #2 on: September 21, 2012, 08:28:06 AM »
Yes this limitation should be removed for when ever Mike pushes it :). But please let me know if it still doesnt work.