Changeset - af1fafcd5927
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 14 years ago 2012-01-21 00:18:06
marcin@python-works.com
fixes expand button on changeset
2 files changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rhodecode/public/css/style.css
Show inline comments
 
@@ -1131,13 +1131,13 @@ tbody .yui-dt-editable { cursor: pointer
 
    white-space: pre-wrap;
 
}
 
#content div.box div.expand {
 
	width: 110%;
 
	height:14px;
 
	font-size:10px;
 
	text-align:right;
 
	text-align:center;
 
	cursor: pointer;
 
	color:#666;
 
 
	background:-webkit-gradient(linear,0% 50%,100% 50%,color-stop(0%,rgba(255,255,255,0)),color-stop(100%,rgba(64,96,128,0.1)));
 
	background:-webkit-linear-gradient(top,rgba(255,255,255,0),rgba(64,96,128,0.1));
 
	background:-moz-linear-gradient(top,rgba(255,255,255,0),rgba(64,96,128,0.1));
rhodecode/templates/changelog/changelog.html
Show inline comments
 
@@ -143,22 +143,23 @@ ${c.repo_name} ${_('Changelog')} - ${c.r
 

	
 
                        }
 
                    });
 

	
 
                    var msgs = YUQ('.message');
 
                    // get first element height
 
                    var el = YUQ('.container')[0];
 
                    var el = YUQ('#graph_content .container')[0];
 
                    var row_h = el.clientHeight;
 
                    for(var i=0;i<msgs.length;i++){
 
                    	var m = msgs[i];
 

	
 
                    	var h = m.clientHeight;
 
                    	var pad = YUD.getStyle(m,'padding');
 
                    	if(h > row_h){
 
                    		var offset = row_h - (h+12);
 
                    		YUD.setStyle(m.nextElementSibling,'display','block');
 
                    		YUD.setStyle(m.nextElementSibling,'margin-top',row_h-(h+14)+'px');
 
                    		YUD.setStyle(m.nextElementSibling,'margin-top',offset+'px');
 
                    	};
 
                    }
 
                    YUE.on(YUQ('.expand'),'click',function(e){
 
                    	var elem = e.currentTarget.parentNode.parentNode;
 
                    	YUD.setStyle(e.currentTarget,'display','none');
 
                    	YUD.setStyle(elem,'height','auto');
0 comments (0 inline, 0 general)