Open the kitchen sink with sketch_for_a_medical_education.xml.
Decrease the label visibility (Ctrl-[).
Delete the first title element in the file.
In the "Errors" pane click on the last error.
Expected Results
The editing pane should scroll so that the marker corresponding to the error is completely visible.
Actual Results
The editing pane scrolls so that the marker is just above the visible portion of the editing pane.
Observations
The issue cannot be reproduced in Firefox or IE. It can be reproduce in Chrome as far back as version 26.
The issue seems to have to do with the fact that the marker is an empty element. Chrome seems to treat the border as having no existence. It furthermore seems that subsequent siblings somehow lend substance to the empty error marker. In the test above, clicking on the first error in the "Errors" pane will bring the first error marker into view as expected. When element labels are visible the issue does not occur at all probably due to the presence of a label after the last error.
The solution is to make the error markers be inline-block elements with an in them.
Versions
Wed: v0.12.2-5-gc306b43 Chrome: 33.0.1750.152
Steps to Reproduce
sketch_for_a_medical_education.xml
.Ctrl-[
).title
element in the file.Expected Results
The editing pane should scroll so that the marker corresponding to the error is completely visible.
Actual Results
The editing pane scrolls so that the marker is just above the visible portion of the editing pane.
Observations
The issue cannot be reproduced in Firefox or IE. It can be reproduce in Chrome as far back as version 26.
The issue seems to have to do with the fact that the marker is an empty element. Chrome seems to treat the border as having no existence. It furthermore seems that subsequent siblings somehow lend substance to the empty error marker. In the test above, clicking on the first error in the "Errors" pane will bring the first error marker into view as expected. When element labels are visible the issue does not occur at all probably due to the presence of a label after the last error.
The solution is to make the error markers be
inline-block
elements with an
in them.