thomas-institut / apm

Digital Edition web application for the Averroes Project
GNU General Public License v3.0
2 stars 0 forks source link

Wrong column order in editor tabs #21

Closed rafaelnajera closed 7 years ago

rafaelnajera commented 7 years ago

In newly created documents with 2 columns, the tabs appear in reversed order: Page Info - Col 2 - Col 1

rafaelnajera commented 7 years ago

Fixed in version 0.5.3

The problem was that the <ul> element with the tabs was generated inside the callback for getting the column elements. If it is quicker to get the elements from col2 than from col1, col2 would get its entry in the tabs' <ul> before col1.

the solution is to move the generation of the <ul> items outside of the callbacks.