Port bug 1516258 - Remove XULScrollElement
Categories
(Thunderbird :: General, enhancement)
Tracking
(Not tracked)
People
(Reporter: jorgk-bmo, Unassigned)
References
Details
Attachments
(1 obsolete file)
As per bug 1516258 comment #4:
scrollbox.ensureElementIsVisible(element);
should be replaced with:
element.scrollIntoView({ block: "nearest" });
https://searchfox.org/comm-central/search?q=ensureElementIsVisible&path=
| Reporter | ||
Comment 1•7 years ago
|
||
OK, looking at the query result we have:
common/bindings/richlistbox.xml
mail/base/content/mailWidgets.xml
That's the forked richlistbox and an extension for attachments. So these won't need to change.
Then we have call sites in calendar/ which most likely use the xbl-richlistbox. Then we have common/bindings/richlistbox.xml, which is the forked richlistbox, now called xbl-richlistbox.
Then we have call sites in mail/ and mailnews/ which look like the use some sort of list, and then there is tabmail.xml which defined an extension of scrollbox.xml, that will need to change, too.
| Reporter | ||
Comment 2•7 years ago
|
||
Hold on, browser/base/content/tabbrowser.xml had
409 this.arrowScrollbox.ensureElementIsVisible(selectedTab, aInstant);
and that wasn't replaced in M-C.
| Reporter | ||
Comment 3•7 years ago
|
||
Well, we have five call sites in messengerLanguages.js, but M-C haven't touched their equivalent browserLanguages.js. I'm confused :-(
I think arrowscrollbox is different object from scrollbox, but was sometimes used as a replacement for it.
| Reporter | ||
Comment 5•7 years ago
|
||
So this changes 8 call sites and does not include tabmail.xml or messengerLanguages.js since the M-C equivalents didn't change.
Comment 6•7 years ago
|
||
| Reporter | ||
Comment 7•7 years ago
|
||
Hmm, Aceman tells me that CE richlistbox has an ensureElementIsVisible() method, that's why you didn't touch browserLanguages.js. As far as I can see, I've only touched CE richlistbox here, so I think the entire patch is obsolete.
| Reporter | ||
Comment 9•7 years ago
|
||
| Reporter | ||
Updated•7 years ago
|
| Reporter | ||
Comment 10•7 years ago
|
||
I think when we forked richlistbox.xml in bug 1517040 we copied the wrong version :-( - I filed bug 1521309 to correct that.
Description
•