Browse Source

[SCEditor] Font sizes do not overlap anymore in the dropdown

Signed-off-by: emanuele <emanuele45@gmail.com>
emanuele 13 years ago
parent
commit
ec6e0330e1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Themes/default/scripts/jquery.sceditor.js

+ 2 - 1
Themes/default/scripts/jquery.sceditor.js

@@ -1194,6 +1194,7 @@
 		// START_COMMAND: Size
 		size: {
 			exec: function (caller) {
+				var sizes = [0, 8, 10, 12, 14, 18, 24, 36];
 				var	editor    = this,
 					content   = $("<div />"),
 					clickFunc = function (e) {
@@ -1204,7 +1205,7 @@
 
 				for (var i=1; i<= 7; i++) {
 					content.append(
-						$('<a class="sceditor-fontsize-option" href="#"><font size="' + i + '">' + i + '</font></a>')
+						$('<a class="sceditor-fontsize-option" style="line-height:' + sizes[i] + 'pt" href="#"><font size="' + i + '">' + i + '</font></a>')
 							.data('sceditor-fontsize', i)
 							.click(clickFunc));
 				}