Issue 126379 - Sidebar ‘Position and Size’ field validation can yield incorrect values. Unit conversion and validation occurring in the middle of keyboard entry – Inconsistent behavior.
Summary: Sidebar ‘Position and Size’ field validation can yield incorrect values. Unit...
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: 4.1.1
Hardware: All All
: P5 (lowest) Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2015-06-21 03:04 UTC by Dinesh Rangarajan
Modified: 2015-06-23 00:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description Dinesh Rangarajan 2015-06-21 03:04:16 UTC
Tested using:
•	Windows 7 Home Premium 32-bit
•	Apache OpenOffice 4.1.1 - AOO411m6(Build:9775)-Rev.1617669 2014-08-13 09:06:54(Mi, 13 Aug 2014)

Steps to reproduce:
1.	Create an Empty Presentation.
2.	From ‘Drawing Toolbar’ select Rectangle.
3.	Draw a rectangle on the slide.
4.	From ‘View’ menu turn on the ‘Sidebar’.
5.	From Sidebar, expand ‘Position and Size’.
6.	Review to check if the units are in inches (“) for Horizontal, Vertical, Width and Height fields.
7.	Select the entire text inside width. 
8.	Enter 4mm quickly without any delay between keystrokes.
9.	Observe unit conversion with the resulting value 0.16 “
10.	Re-Select the entire text inside width. 
11.	Enter 4mm with a small delay after the first m.
12.	Observe 99m.99 " (Bug)
The unit conversion has occurred on 4 meters, resulting in default maximum of 99.99” before the last keystroke. The last keystroke falls inside the 99.99”. Value assigned on lost focus = 99.99 ".
13.	Re-Select the entire text inside width. 
14.	Enter 4mm with a small delay after  entering 4.
15.	Observe 4mm.00 " (Bug)

Validation has occurred on 4 inch, resulting in 4.00 " before the remaining  keystrokes. The remaining  keystroke  falls inside the 4.00 ". Value assigned on lost focus = 4.00 ".

This behavior is inconsistent with ‘Position and Size’ dialog box pop-up window (triggered by the click of ‘more options’ icon on the sidebar next to ‘position and size’ item. The field validation and unit conversion occurs only on lost focus of the field in the pop-up window.  Please  make sidebar field’s behavior consistent with the pop-up window dialog.

The bug causes user annoyance when the user try's to adjust the position and size of the selected object. The incorrect value results in undesired shape/ position of the object, especially when the default maximum of the field is got.

Please also rename ‘Position X’ label in the’ Position and Size’ pop-up window dialog to Horizontal (Position X) and ‘Position Y’ label  to Vertical (Position Y) to make these fields consistent with the sidebar fields.
Comment 1 oooforum (fr) 2015-06-22 07:57:55 UTC
Already reported

*** This issue has been marked as a duplicate of issue 55466 ***
Comment 2 Dinesh Rangarajan 2015-06-23 00:44:56 UTC
Issue 55466 talks about wrong display size. Current bug is about incorrect validation occurring inside the field. Issue 126379 does not appear to be duplicate of Issue 55466.

Race Condition occurs when numbers with unit are entered into the 'Position and Size' sidebar fields slowly. The fields that show this issue are:
1. Horizontal
2. Vertical
3. Width and
4. Height

Sidebar feature is shared between all Open Office application that support the drawing toolbar.