This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 219087 - arrows grabbing the wrong values
Summary: arrows grabbing the wrong values
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Inspection (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-26 20:28 UTC by John Jullion-ceccarelli
Modified: 2012-10-01 12:08 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (9.94 KB, image/png)
2012-09-26 20:28 UTC, John Jullion-ceccarelli
Details
rule-editor2.png (10.50 KB, image/png)
2012-09-26 20:29 UTC, John Jullion-ceccarelli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Jullion-ceccarelli 2012-09-26 20:28:50 UTC
Created attachment 124972 [details]
screenshot

In angrybids demo, put the following in the productWrapper rule:

.productWrapper {
    width: 100px;
    font-size: 90%;
}

Then put the cursor in the rule in the CSS editor. The Rule Editor will show rule-editor1.png.

Put the cursor in the width property and hit the down arrow, it will switch to 89%, see rule-editor2.png
Comment 1 John Jullion-ceccarelli 2012-09-26 20:29:21 UTC
Created attachment 124973 [details]
rule-editor2.png
Comment 2 Petr Jiricka 2012-09-26 20:37:13 UTC
Sounds similar to problem 2a in bug 219053.
Comment 3 Marek Fukala 2012-09-27 07:48:22 UTC
reproducible.
Comment 4 Marek Fukala 2012-09-27 12:20:16 UTC
changeset:   234555:9cc034aa062b
summary:     #219087 - arrows grabbing the wrong values - we can't use SheetTable.getEditor().reusableEnv in SheetTable$IncrementAction to obtain the SpinnerModel as the reusable env can be already reused and hence contain no or wrong SpinnerModel. As increment support is currently limited to the ComboInplaceEditor anyway I hacked the problem by remembering the proper SpinnerModel in ComboInplaceEditor.connect(...) where the PropertyEnv is passed.
Comment 5 Quality Engineering 2012-10-01 12:08:42 UTC
Integrated into 'main-golden', will be available in build *201210010929* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9cc034aa062b
User: Marek Fukala <mfukala@netbeans.org>
Log: #219087 - arrows grabbing the wrong values - we can't use SheetTable.getEditor().reusableEnv in SheetTable$IncrementAction to obtain the SpinnerModel as the reusable env can be already reused and hence contain no or wrong SpinnerModel. As increment support is currently limited to the ComboInplaceEditor anyway I hacked the problem by remembering the proper SpinnerModel in ComboInplaceEditor.connect(...) where the PropertyEnv is passed.