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 176649 - Code formatter scrolls editor to the right
Summary: Code formatter scrolls editor to the right
Status: VERIFIED WORKSFORME
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks: 173487
  Show dependency tree
 
Reported: 2009-11-12 04:31 UTC by Alexandr Scherbatiy
Modified: 2009-11-20 04:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-11-12 04:31:06 UTC
Developer build.

  Product Version         = NetBeans IDE Dev (Build 200911091156) (#fa9887b26708)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.


Steps to reproduce:

- Copy the code to the editor
------------------------------------------------------
import javafx.stage.*;
import javafx.scene.*;
import javafx.animation.*;
import javafx.scene.input.*;
import javafx.scene.shape.*;
import javafx.scene.paint.*;
import javafx.scene.transform.Shear;
import javafx.scene.transform.Rotate;
import javafx.scene.transform.Scale;

var rx = 20;
var ry = 20;
var rw = 20;
var rh = 20;
var timeline = Timeline {
repeatCount: 1
            keyFrames: [
                KeyFrame {
                    time: 0.5s
                    canSkip: true
                    values: [
                        rw => 60  ,
                        rh => 60  ]
                    },
                KeyFrame {
                    time: 1.0s
                    canSkip: true
                    values: [rw => 20  , rh => 20  ]
                    }
                ]
            };

timeline.play();

Stage {
    title: "Sample"
    scene: Scene {
        width: 250
        height: 280
        content: [
            Rectangle {
                x: rx
                y: ry
                width: bind rw
                height: bind rh
                fill: Color.GREEN
                transforms: [Shear {x: 0.2, y: 0.3}, Rotate {pivotX: 0.0, pivotY: 0.0, angle: 45.0}, Scale {x: 1.5, y: 2.0}]
                onMouseEntered: function( e: MouseEvent ):Void {
                 }
                }
            ]
        }
    }
------------------------------------------------------


- Format the code
The editor is scrolled to the right so the left side of the code is not visible
Comment 1 Anton Chechel 2009-11-18 05:51:25 UTC
Works for me. Even if it scrolls editor pane to the right for, it is not a bug.
Comment 2 Alexandr Scherbatiy 2009-11-20 04:46:13 UTC
verified in Build 200911200201