[r137] shift+resizing objects with negative size

Bugs will be moved here once resolved.

Post » Mon Jul 08, 2013 3:36 pm

Link to .capx file (required!):
N/A, occurs in any project

Steps to reproduce:
1. Give a sprite a negative width or height
2. Hold shift and drag the corner handles to attempt to resize it proportionally


Observed result:
The object disappears, and both position and size properties display as "-1.#IO, -1.#IO"

Expected result:
The object should rescale proportionally.

Browsers affected:
N/A, editor issue

Operating system & service pack:
Win7 64bit

Construct 2 version:
r137, but this has occurred for as long as I can remember. Just thought I'd report it now.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Post » Tue Jul 09, 2013 1:35 pm

Can't reproduce, in r137 it flips it to a positive size, and doesn't do the -1.#I thing that you describe. Anything I'm missing?
Scirra Founder
B
400
S
236
G
89
Posts: 24,546
Reputation: 195,461

Post » Tue Jul 09, 2013 2:24 pm

@Ashley it has to have a negative width OR height, not both. If both, it flips to a positive size, as you said (Which still isn't the optimal result)
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Post » Tue Jul 09, 2013 3:44 pm

Oh, I see - I guess you meant "negative width XOR negative height" ;)

I've fixed this for the next build so it doesn't disappear and go -1.#IO. It still flips positive though, is that a problem as well?
Scirra Founder
B
400
S
236
G
89
Posts: 24,546
Reputation: 195,461

Post » Tue Jul 09, 2013 4:17 pm

@Ashley yeah, the positive flipping is still annoying, I'd much prefer it to work as you'd expect (Proportional resizing but keeping the negative width XOR height)

And yes, I do need to work on my logical operators ;)
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests