[de-xbl] item-date-row
Categories
(Calendar :: General, enhancement)
Tracking
(Not tracked)
People
(Reporter: mkmelin, Assigned: khushil324)
References
Details
Attachments
(1 file, 6 obsolete files)
(deleted),
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1484976 +++
De-xbl item-date-row
https://searchfox.org/comm-central/search?q=item-date-row&path=
https://searchfox.org/comm-central/search?q=.Item&case=true®exp=false&path=calendar
Assignee | ||
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
(In reply to Arshad Khan [:arshad] from comment #2)
Use parseXULToFragment only when you want to use DTD values(1) or the amount
of children that you are appending is way too much. Example for case 1 -
https://searchfox.org/comm-central/source/mailnews/base/search/content/
searchWidgets.js#43 and example for case 2 -
https://bugzilla.mozilla.org/page.cgi?id=splinter.
html&ignore=&bug=1512941&attachment=9033534 (see moztimpickergrids class).
textbox is a XBL binding so I thought I need to add it in parseXULToFragment.
always make sure the element is available and not null, when you are setting
an attribute or anything else on the node. here if I create MozItemDateRow
by js and set align ATtribute on the element then an error will be thrown,
becuase I created the element but never appended it to DOM and thus the
connectedCallback was never called and #item-datetime-label was never added
as a child.
Should I just add add a condition over there that do only if is not equal to null ?
why -moz-grid-line?
I have replicated row behavior here. As I need two elements under row element to make column behaviour working. If I add item-date-row element under the row element, it will take as a single element and will display it as a single column. So I removed the row element and gave display styling to item-date-row.
Reporter | ||
Comment 4•6 years ago
|
||
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 5•6 years ago
|
||
Please also add more context to your patches. 8 or 9. In .hgrc, add this
[defaults]
diff = -p -U 9
Comment 6•6 years ago
|
||
Comment 7•6 years ago
|
||
please make this.mItem just this.item (change mItem to item). then you don't need the getter here (but perhaps eslint will
insist on it still since you have a setter)
^
Comment 8•6 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #5)
Please also add more context to your patches. 8 or 9. In .hgrc, add this
[defaults]
diff = -p -U 9
Must be 8 so we can compare patches.
Reporter | ||
Comment 9•6 years ago
|
||
(In reply to Arshad Khan [:arshad] from comment #6)
if you change mItem to item then this line will turn into an infinite loop
as the setter function will call itself again..
All the more reason not to have getter then :)
Reporter | ||
Comment 10•6 years ago
|
||
Please ignore ^^^. Doh.
Assignee | ||
Comment 11•6 years ago
|
||
Reporter | ||
Comment 12•6 years ago
|
||
Reporter | ||
Comment 13•6 years ago
|
||
Assignee | ||
Comment 14•6 years ago
|
||
align should probably go on the <row>, only, no?
We are applying align property to label only. We are changing label's orientation on different locations. So I think row is not getting affected anywhere.
Assignee | ||
Comment 15•6 years ago
|
||
Oh, I forgot, setting flex here makes little sense. You can just put it in
the markup if it's needed
Without flex, it is creating a problem in setting up the width. It shows fixed width but we want 100% width so I have added flex. I will shift it to markup.
Assignee | ||
Comment 16•6 years ago
|
||
Reporter | ||
Comment 17•6 years ago
|
||
Assignee | ||
Comment 18•6 years ago
|
||
Comment 19•6 years ago
|
||
Reporter | ||
Comment 20•6 years ago
|
||
(In reply to Philipp Kewisch [:Fallen] [:📆] from comment #19)
I've again forgotten what you and Magnus said about this, but can we use
<script type="module"> to avoid the need for the extra scope block?
IIRC, the conclusion was that in theory that should work. Whether the overlay loader handles this or not, I don't know (it handles loading js manually and slightly differently than the standard way).
Comment 21•6 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #20)
(In reply to Philipp Kewisch [:Fallen] [:📆] from comment #19)
I've again forgotten what you and Magnus said about this, but can we use
<script type="module"> to avoid the need for the extra scope block?IIRC, the conclusion was that in theory that should work. Whether the overlay loader handles this or not, I don't know (it handles loading js manually and slightly differently than the standard way).
Ah ok, I'll try to remember. The overlay loader does not support this, so we're waiting on bug 1311728. Carry on without a module then.
Assignee | ||
Comment 22•6 years ago
|
||
Comment 23•6 years ago
|
||
Assignee | ||
Comment 24•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 26•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 27•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/17c470797127
[de-xbl] convert item-date-row binding to custom element. r=philipp
Updated•6 years ago
|
Description
•