Changeset 8347
- Timestamp:
- 30/01/12 17:47:08 (4 months ago)
- Files:
-
- 1 modified
-
branches/e4fix/EDIT4/ed4_class.hxx (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/e4fix/EDIT4/ed4_class.hxx
r8346 r8347 479 479 update_folding_line_positions(); 480 480 } 481 481 482 482 void calc_bottomRight_folding_dimensions(int area_width, int area_height) { 483 483 AW_pos dim; 484 if (bottom() > area_height) { // our world doesn't fit vertically in our window 485 dim = bottom()-area_height; // calc dimension of bottom folding line 484 if (bottom() > area_height) { // our world doesn't fit vertically in our window 485 dim = bottom()-area_height; // calc dimension of both horizontal folding lines 486 scroll_top->set_dimension(min(dim, scroll_top->get_dimension())); 486 487 scroll_bottom->set_dimension(max(0, int(dim - scroll_top->get_dimension()))); 487 488 } … … 492 493 } 493 494 495 // e4_assert(scroll_top->dimension >= 0); // @@@ reactivate when refresh is fixed (or better move into set_dimension) 496 // e4_assert(scroll_bottom->dimension >= 0); 497 e4_assert(dim == (scroll_top->get_dimension()+scroll_bottom->get_dimension())); 494 498 scroll_bottom->set_pos(world.bottom()-dim); 495 499 496 if (right()>area_width) { // our world doesn't fit horizontally in our window => 497 dim = right()-area_width; // calc dimension of right folding line 500 if (right()>area_width) { // our world doesn't fit horizontally in our window 501 dim = right()-area_width; // calc dimension of both vertical folding lines 502 scroll_left->set_dimension(min(dim, scroll_left->get_dimension())); 498 503 scroll_right->set_dimension(max(0, int(dim - scroll_left->get_dimension()))); 499 504 } … … 504 509 } 505 510 511 // e4_assert(scroll_left->dimension >= 0); // @@@ reactivate when refresh is fixed (or better move into set_dimension) 512 // e4_assert(scroll_right->dimension >= 0); 513 e4_assert(dim == (scroll_left->get_dimension()+scroll_right->get_dimension())); 506 514 scroll_right->set_pos(world.right()-dim); 507 515
