Browse Source

minor changes for upload and its theme

svn changeset:8443/svn branch:6.0
tags/6.7.0.beta1
Matti Tahvonen 15 years ago
parent
commit
b24c11cb34

+ 2
- 0
WebContent/VAADIN/themes/base/styles.css View File

@@ -1441,6 +1441,7 @@ div.v-tree-node-leaf {
position: relative;
width: 10em;
margin:0;
overflow:hidden;
}

.v-upload-immediate input {
@@ -1457,6 +1458,7 @@ div.v-tree-node-leaf {
left:0;
top:0;
width:100%;
text-align:left;
}


+ 2
- 0
WebContent/VAADIN/themes/base/upload/upload.css View File

@@ -2,6 +2,7 @@
position: relative;
width: 10em;
margin:0;
overflow:hidden;
}

.v-upload-immediate input {
@@ -18,5 +19,6 @@
left:0;
top:0;
width:100%;
text-align:left;
}

+ 2
- 0
WebContent/VAADIN/themes/reindeer/styles.css View File

@@ -1441,6 +1441,7 @@ div.v-tree-node-leaf {
position: relative;
width: 10em;
margin:0;
overflow:hidden;
}

.v-upload-immediate input {
@@ -1457,6 +1458,7 @@ div.v-tree-node-leaf {
left:0;
top:0;
width:100%;
text-align:left;
}


+ 2
- 0
WebContent/VAADIN/themes/runo/styles.css View File

@@ -1441,6 +1441,7 @@ div.v-tree-node-leaf {
position: relative;
width: 10em;
margin:0;
overflow:hidden;
}

.v-upload-immediate input {
@@ -1457,6 +1458,7 @@ div.v-tree-node-leaf {
left:0;
top:0;
width:100%;
text-align:left;
}


+ 3
- 3
src/com/vaadin/terminal/gwt/client/ui/VUpload.java View File

@@ -153,13 +153,13 @@ public class VUpload extends FormPanel implements Paintable,

protected void disableUpload() {
submitButton.setEnabled(false);
fu.setVisible(false);
// fu.getElement().setPropertyBoolean("disabled", true);
enabled = false;
}

protected void enableUploaod() {
submitButton.setEnabled(true);
fu.setVisible(true);
// fu.getElement().setPropertyBoolean("disabled", false);
enabled = true;
}

@@ -172,7 +172,7 @@ public class VUpload extends FormPanel implements Paintable,
panel.remove(fu);
fu = new MyFileUpload();
fu.setName(paintableId + "_file");
fu.setVisible(enabled);
// fu.getElement().setPropertyBoolean("disabled", !enabled);
panel.add(fu);
panel.add(submitButton);
if (immediate) {

Loading…
Cancel
Save