From 119a4ced6d27708d0ccf9f7399b7067fa613421b Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 4 Apr 2014 15:12:54 -0400 Subject: [PATCH] Fixes #637 issue with positioning example --- server/files/javascript/semantic.js | 8 ++++---- server/files/stylesheets/semantic.css | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/files/javascript/semantic.js b/server/files/javascript/semantic.js index ac718484b..a7529eaef 100755 --- a/server/files/javascript/semantic.js +++ b/server/files/javascript/semantic.js @@ -308,7 +308,7 @@ semantic.ready = function() { ; } - if( $example.find('.ace_editor').size() === 0) { + if( $annotation.find('.ace_editor').size() === 0) { $code = $('
') .data('type', 'html') .addClass('code') @@ -460,14 +460,14 @@ semantic.ready = function() { // add label if(title) { $('
') - .addClass('ui attached top label') + .addClass('ui ignored attached top label') .html('' + title + '' + '' + (displayType[contentType] || contentType) + '') .prependTo( $(this).parent() ) ; } if(label) { $('
') - .addClass('ui pointing below label') + .addClass('ui ignored pointing below label') .html(displayType[contentType] || contentType) .insertBefore ( $(this).parent() ) ; @@ -475,7 +475,7 @@ semantic.ready = function() { // add run code button if(demo) { $('') - .addClass('ui pointing below black label') + .addClass('ui ignored pointing below black label') .html('Run Code') .on('click', function() { eval(code); diff --git a/server/files/stylesheets/semantic.css b/server/files/stylesheets/semantic.css index 7b288b819..eeb82e25e 100755 --- a/server/files/stylesheets/semantic.css +++ b/server/files/stylesheets/semantic.css @@ -608,7 +608,7 @@ body.guide .main.container > * { margin: 0em; padding: 0.5em !important; } -#example .position.example .segment { +#example .position.example > .segment { width: 250px; height: 250px; }