Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

setLeft vs. setRight

$
0
0
Hey,

I often use the method setLeft for some components to be placed correct.
But today I needed the opposite. Since I often saw the method setRight while scrolling through to search for something, I knew it is supported.
So, I wrote my piece of code, added setRight and baamm. Checked the UI to have a look at the result and my Image is stretched over a large area.... yeah... what the hack is going on there.

Reading the description of setRight gives me the answer this method doesn't do what u would expect (or at least what I expected)

So first thing is please check your namings :)

Second thing is I still couldn't find something which does what I need. Has anyone any idea? :)

Cheers,
JCarlson

Viewing all articles
Browse latest Browse all 4756

Trending Articles