Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a bug related to the pull-down

  • Loading branch information...
commit 60e19df9a2f8e69e79257eb8c0046ce07cc260d5 1 parent 21c2bdc
@kanreisa authored
Showing with 17 additions and 3 deletions.
  1. +8 −1 hyperform.css
  2. +9 −2 hyperform.js
View
9 hyperform.css
@@ -53,7 +53,8 @@
line-height: 18px;
color : #222;
color : rgba(0, 0, 0, 0.8);
- text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
+ white-space: nowrap; }
.hyperform button > label.hyperform-icon {
padding-left : 25px;
@@ -403,6 +404,11 @@
table.hyperform > tbody > tr > td > div.pulldown > div.pulldown-list.pulldown-list-upper {
top : auto;
bottom: 27px; }
+
+ table.hyperform > tbody > tr > td > div.pulldown > div.pulldown-list.pulldown-list-put {
+ position : relative;
+ top : 2px;
+ margin-bottom: 5px; }
table.hyperform > tbody > tr > td > div.pulldown > button > label:after {
content : "\25bc";
@@ -666,6 +672,7 @@
background-image: linear-gradient(top, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.15)); }
table.hyperform > tbody > tr > td.submit > button:active {
+
border-color : #000;
background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.20));
background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.20));
View
11 hyperform.js
@@ -417,8 +417,15 @@ var Hyperform = Class.create({
) <= 0
);
if (isOut) {
- if (list.hasClassName('pulldown-list-upper') === false) {
- list.addClassName('pulldown-list-upper');
+ var isOver = ((table.getHeight() - list.getHeight()) < 0);
+ if (isOver) {
+ if (list.hasClassName('pulldown-list-put') === false) {
+ list.addClassName('pulldown-list-put');
+ }
+ } else {
+ if (list.hasClassName('pulldown-list-upper') === false) {
+ list.addClassName('pulldown-list-upper');
+ }
}
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.