Permalink
Browse files

Fixed overlap bug in edit.php

The textarea box was expanding all the way to the bottom of the page, but its z-index was lower than the buttons class so the bottom 75px of text was cut off. I wrapped the textarea in a div and added min- and max-height constraints so that the js textarea expander expands the textarea to the proper size.
  • Loading branch information...
tansey committed Mar 17, 2013
1 parent 71aa87e commit 102744888c7357647decee00cc5ce16f8373e55d
Showing with 4 additions and 4 deletions.
  1. +4 −4 wp-svbtle/views/edit.php
View
@@ -42,9 +42,9 @@
<?php endif; ?>
<textarea id="post_title" class="text expand" name="post_title" placeholder="Title Here" size="60" tabindex="1"><?php echo $post_title;?></textarea>
<textarea name="post_content" id="post_content" placeholder="Write post here" class="content" tabindex="2"><?php echo $post_content ?></textarea>
<div id="post_content_wrapper" style="position:fixed;left:200px;top:75px;bottom:75px;max-height:100%">
<textarea name="post_content" id="post_content" placeholder="Write post here" class="content" style="min-height:100%;max-height:100%" tabindex="2"><?php echo $post_content ?></textarea>
</div>
<?php else: ?>
<?php // a lo mejor convendría un redirect? ?>
<p>Sorry, you don't have permission to post new article!</p>
@@ -119,4 +119,4 @@ function Editor(input, preview)
</script>
<?php include('footer.php'); ?>
<?php include('footer.php'); ?>

0 comments on commit 1027448

Please sign in to comment.