r113299 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113298‎ | r113299 | r113300 >
Date:21:20, 7 March 2012
Author:nad
Status:deferred
Tags:
Comment:
make width 100% and bigger radius
Modified paths:
  • /trunk/extensions/TreeAndMenu/star.js (modified) (history)

Diff [purge]

Index: trunk/extensions/TreeAndMenu/star.js
@@ -7,8 +7,8 @@
88 easing: 'swing',
99 out_spin: 2,
1010 in_spin: 2,
11 - width: 500,
12 - height: 500
 11+ width: '100%',
 12+ height: 600
1313 }
1414
1515 /**
@@ -147,8 +147,8 @@
148148 // Position the children to their locations around the parent
149149 var n = data.children.length;
150150 var k = Math.PI * 2 / n;
151 - var r = t * n * 8;
152 - if( r < 20 ) r = 20;
 151+ var r = t * n * 12;
 152+ if( r < 30 ) r = 30;
153153 for( var i in data.children ) {
154154 var child = data.children[i];
155155 var cdata = getData(child);

Status & tagging log