Transkribus / TranskribusSwtGui

Note: the repo has been moved to https://gitlab.com/readcoop/Transkribus/TranskribusSwtGui
GNU General Public License v3.0
18 stars 4 forks source link

TableEditor - shifting image when currently selected table cell is outside of canvas borders #121

Open EvaMLang opened 7 years ago

EvaMLang commented 7 years ago

In cases where only parts of the table image is visible, i.e. after zooming in, selecting a table cell and moving to the neighboring cells via arrow keys does not adjust the canvas image on display. That means, the selection is correct but leaves the viewing area - instead the viewing area should be adjusted to follow the selection (same user experience wanted as in moving between text regions on canvas).

jkloe commented 7 years ago

The default behaviour (also for text regions) is that the zoom and translation is not changed if the new region (table cell, text region, line ...) is visibile in the current viewport. I'm not sure if we should change this...

EvaMLang commented 7 years ago

If it is still visible, this is fine. However, if the selection leaves the current viewport, the document should be translated. One option would be, that the translation is done in a way that the translation works in a way that the newly activated region becomes fully visible in the viewport, i.e. translation of image is only done by width/height of the newly selected region.