History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-901
Type: Bug Bug
Status: Verified Verified
Resolution: Fixed
Priority: P1 P1
Assignee: Frisco Del Rosario
Reporter: Antun Karlovac
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

Datepicker is draggable

Created: 04/Nov/05 01:17 PM   Updated: 26/Jun/06 09:36 PM
Component/s: Components - LZ
Affects Version/s: 3.0.2
Fix Version/s: 3.3

Time Tracking:
Not Specified

File Attachments: 1. File basewindow.lzx (13 kb)
2. File datepicker.lzx (19 kb)
3. File datepickerdragtest.lzx (0.7 kb)


Severity: Minor
Fixed in Change#: 42,082
Runtime: N/A
Fix in hand: True


 Description  « Hide
By default, datepicker is draggable (because it contains <windowpanel>). That's not useful, and there's no way of making it not draggable. It should not be draggable.

-Antun

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Benjamin Shine - 29/Mar/06 05:59 PM
Bruce Cummins has contributed a fix, which I need to review and apply.

Benjamin Shine - 29/Mar/06 06:00 PM
I'm attaching files from Bruce with a fix. These need to be reviewed and checked in.

Changes to basewindow:

Added the attribute allowdrag This attribute defaults to true so all applications that expect windows to be draggable will work as normal.

Modified the method _startDrag. The drag now only occurs if allowdrag equals true.

Changes to datepicker:

Added the attribute allowdrag. This attribute defaults to true.

Defined the attribute allowdrag for the windowpanel "main". This attribute is tied to the value defined in the datepicker class.


datepickerdragtest.lzx

The first datepicker does not have the attribute defined - it should be draggable.

The second dragpicker has allowdrag defined as true - it should be draggable.

The third datepicker has allowdrag defined as false - it should not be draggable.

Antun Karlovac - 03/Apr/06 06:46 PM
The fix worked for me!

-Antun

Jim Grandy - 04/May/06 06:18 PM
Ben, please integrate and check in for 3.2.1.

Benjamin Shine - 05/May/06 11:58 PM
Fix contributed by Bruce Cummins, reviewed by Ben Shine

Jim Grandy - 06/May/06 04:38 PM
Integrated to lps-3.2 as change 42084