The query seems correct, the problem is likely in the while loop after it, it stops once `width < aPreferredWidth` assuming width was decreasing across results, that is not true anymore.
Bug 1917470 Comment 3 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
The query seems correct, the problem is likely in the while loop after it, it stops once `width < aPreferredWidth` assuming width was decreasing across results, that is not true anymore. I think for now we could change the first if to say lastWidth <= width, we can go fancier in the future in bug 1494016.
The query seems correct, the problem is likely in the while loop after it, it stops once `width < aPreferredWidth` assuming width was decreasing across results, that is not true anymore. I think for now we could change the first if to say lastWidth <= width, we can go fancier in the future in bug 1494016. This also means the test likely needs improvement (rich icon should have larger width than icon)