Closed Bug 330641 Opened 20 years ago Closed 20 years ago

calendar widget for xul

Categories

(Core Graveyard :: XForms, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: surkov, Assigned: surkov)

References

Details

(Keywords: fixed1.8.0.5, fixed1.8.1)

Attachments

(3 files, 2 obsolete files)

Status: NEW → ASSIGNED
Attached patch patch (obsolete) — — Splinter Review
It's only compact calendar widget for xul. I want to do full calendar in next bug. Comments about style issues are looked forward.
Attachment #217271 - Flags: review?(allan)
Depends on: 332945
Comment on attachment 217271 [details] [diff] [review] patch I want to split the bug on two: "exposing base interface" (bug 332945) and "calendar for xul".
Attachment #217271 - Flags: review?(allan)
Blocks: 334503
Severity: normal → enhancement
Attached patch patch2 (obsolete) — — Splinter Review
Attachment #217271 - Attachment is obsolete: true
Attachment #222326 - Flags: review?(doronr)
Attached file testcase —
Attachment #222326 - Flags: review?(doronr) → review+
Attachment #222326 - Flags: review?(allan)
Comment on attachment 222326 [details] [diff] [review] patch2 I think the behaviour of readonly inputs and outputs are wrong. The UI should be driven by the instance data. It's ok that the user can navigate RO calendars, but as soon as focus is lost the control should display the instance data value. Another bug for that, as XHTML aparently already have this behaviour too. > --- mozilla.orig/extensions/xforms/resources/content/widgets-xul.xml 1970-01-01 08:00:00.000000000 +0800 > + <!-- Return true if node is control element for a day --> > + <method name="isDayControl"> > + <parameter name="aNode"/> > + <body> > + if (aNode.localName != "toolbarbutton" || aNode.namespaceURI != this.XUL_NS) nit: split long line > + <method name="buildUIInternal"> > + <body> > + <![CDATA[ > + var dayOfWeekNames = this.getDaysOfWeekNames(); > + > + var row = document.createElementNS(this.XUL_NS, "row"); > + > + // create days of a week names > + var header, description; > + for (var i = 0; i < 7; i++) { > + description = this.ownerDocument.createElementNS(this.XUL_NS, "description"); nit: split > --- mozilla.orig/extensions/xforms/resources/skin/widgets-xul.css 1970-01-01 08:00:00.000000000 +0800 > +.toolbarbutton-dn { > + list-style-image: url('chrome://global/skin/arrow/arrow-dn.gif'); > + padding: 0px; > + /*padding-left: 3px; > + margin-top: -1px;*/ remove commented out stuff > + -moz-image-region: rect(1px, 9px, 9px, 1px); > +} > +.toolbarbutton-up { > + list-style-image: url('chrome://global/skin/arrow/arrow-up.gif'); > + padding: 0px; > + /*padding: 0px 0px 0px 3px; > + margin-bottom: -1px;*/ remove commented out stuff > +.toolbarbutton-up:hover{ add space before { Other things: * The up arrow looks "garbled". * In the testcase, if I enter a year in the input that is not in the drop down, I get these errors: Warning: reference to undefined property this.yearsLabel Source File: chrome://xforms/content/widgets-xul.xml Line: 250 Error: this.yearsLabel has no properties Source File: chrome://xforms/content/widgets-xul.xml Line: 250 And the output is not changed according to the input.
Attachment #222326 - Flags: review?(allan) → review-
Attached image screenshot —
Attached patch patch3 — — Splinter Review
Attachment #222326 - Attachment is obsolete: true
Attachment #223163 - Flags: review?(allan)
Blocks: 339080
Blocks: 339082
Comment on attachment 223163 [details] [diff] [review] patch3 With follow ups, bug 339080 and bug 339082, r=me
Attachment #223163 - Flags: review?(allan) → review+
Fixed on trunk.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Whiteboard: xf-to-branch
Keywords: fixed1.8.1
Keywords: fixed1.8.0.5
Whiteboard: xf-to-branch
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: