View Issue Details

IDProjectCategoryView StatusLast Update
0004223ardourbugspublic2011-08-14 09:53
Reporteroofus Assigned Tocth103  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformDell D830 core2duo T9300 2.5GHzOSKubuntuOS Version10.10
Target Version3.0-beta1 
Summary0004223: When naming tracks in the editor and tabbing to the next one, tracks off the bootom of the view should be brought into view.
DescriptionWhen naming tracks in the editor and tabbing to the next one, tracks off the bottom of the view should be brought into view as they are tabbed to.
TagsNo tags attached.

Activities

paul

2011-07-25 20:29

administrator   ~0011221

svn rev 9924 has an attempt at the correct behaviour

colinf

2011-07-25 23:47

updater   ~0011222

Not quite right yet: the tabbed-to track is only brought into view if the top of the track is lower than the bottom of the editor window, so if the upper part of a track is visible at the bottom of the window, tabbing to it doesn't scroll the track name into view.

I guess the track's height should be taken into account too so that when tabbing downwards the bottom of the tabbed-to track is brought into view.

colinf

2011-07-26 16:10

updater   ~0011224

Actually, if the tabbed-to track is off the bottom of the editor window, it will only be scrolled into view if is further below the bottom of the window than the height of whichever of the the 'Meter', 'Tempo', 'Ranges' etc. strips are visible at the top of the editor view.

2011-07-26 16:10

 

4223.patch (541 bytes)   
Index: gtk2_ardour/editor_canvas.cc
===================================================================
--- gtk2_ardour/editor_canvas.cc	(revision 9936)
+++ gtk2_ardour/editor_canvas.cc	(working copy)
@@ -704,7 +704,7 @@
 
 	double v = vertical_adjustment.get_value ();
 
-	if (begin < v || begin > v + _canvas_height) {
+	if (begin < v || begin + tav.current_height() > v + _canvas_height - canvas_timebars_vsize) {
 		/* try to put the TimeAxisView roughly central */
 		if (begin >= _canvas_height/2.0) {
 			begin -= _canvas_height/2.0;
4223.patch (541 bytes)   

colinf

2011-07-26 16:11

updater   ~0011225

I think the attached 4223.patch makes this work a bit better...

cth103

2011-08-03 13:28

administrator   ~0011247

Colin's patch applied to SVN 9952; please re-open this bug if there are still problems. Thanks!

oofus

2011-08-14 09:53

developer   ~0011336

That's pretty good now, thanks.

Issue History

Date Modified Username Field Change
2011-07-23 14:56 oofus New Issue
2011-07-23 14:56 oofus cost => 0.00
2011-07-24 20:15 cth103 Target Version => 3.0-beta1
2011-07-25 20:29 paul Note Added: 0011221
2011-07-25 23:47 colinf Note Added: 0011222
2011-07-26 16:10 colinf Note Added: 0011224
2011-07-26 16:10 colinf File Added: 4223.patch
2011-07-26 16:11 colinf Note Added: 0011225
2011-08-03 13:28 cth103 Note Added: 0011247
2011-08-03 13:28 cth103 Status new => resolved
2011-08-03 13:28 cth103 Resolution open => fixed
2011-08-03 13:28 cth103 Assigned To => cth103
2011-08-14 09:53 oofus Note Added: 0011336
2011-08-14 09:53 oofus Status resolved => closed