DistributedProofreaders / dproofreaders

Distributed Proofreaders is a web application intended to ease the process of converting public domain books into e-texts.
https://www.pgdp.net
GNU General Public License v2.0
46 stars 28 forks source link

put limits on split ratio so neither pane can disappear #1194

Closed 70ray closed 2 months ago

70ray commented 2 months ago

Sandbox at: https://www.pgdp.org/~rp31/c.branch/limit_split

It should not now be possible to drag the splitter bar right to the edge so one of the panes disappears. The limit is set at 10% of the width but this can be changed if it seems too large or small.

The splitter is used in the image and text viewer: tools/page_browser.php and also in: tools/project_manager/show_all_good_word_suggestions.php tools/project_manager/show_good_word_suggestions_detail.php tools/project_manager/show_word_context.php

and can also be tested in the demonstrations at https://www.pgdp.org/~rp31/c.branch/limit_split/SETUP/tests/manual_web/split_test/index.html