Skip to content

Commit

Permalink
Merge pull request #25 from unicef-polymer/develop
Browse files Browse the repository at this point in the history
Develop - Expose fitInto for toast msg and fix layout issue
  • Loading branch information
acory authored Aug 11, 2017
2 parents 4a981b4 + 21eca03 commit 66a603d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "etools-file",
"description": "This element will allow you to select and prepare the files you are gonna upload.",
"version": "1.2.3",
"version": "1.2.4",
"license": "https://github.com/unicef-polymer/etools-file/blob/master/LICENSE.md",
"main": "etools-file.html",
"dependencies": {
Expand Down
11 changes: 7 additions & 4 deletions etools-file.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@

<template>
<style include="etools-file-style additional-columns-displayed-style">

.toast-style {
min-width: 330px;
}
</style>

<paper-input-container always-float-label disabled$="[[disabled]]" invalid$="[[invalid]]">
Expand Down Expand Up @@ -166,7 +168,7 @@

</paper-input-container>

<paper-toast id="fileAlreadySelectedToast" always-on-top></paper-toast>
<paper-toast class="toast-style" id="fileAlreadySelectedToast" fit-into="[[toastFitInto]]" always-on-top></paper-toast>

</template>

Expand Down Expand Up @@ -271,7 +273,8 @@
hideDeleteBtn: {
type: Boolean,
reflectToAttribute: true,
}
},
toastFitInto: Object
},

observers: [
Expand Down Expand Up @@ -453,7 +456,7 @@

_displayAlreadySelectedWarning: function(filesAlreadySelected) {
// show a warning with the already selected files
var toastWarningMessage = '<p><strong>The following file are already selected:</strong><p>';
var toastWarningMessage = '<p><strong>The following files are already selected:</strong><p>';
filesAlreadySelected.forEach(function(alreadySelectedFile) {
toastWarningMessage += '<p>' + alreadySelectedFile.file_name + '</p>';
});
Expand Down
2 changes: 1 addition & 1 deletion style/additional-columns-displayed-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

}
:host([activate-file-types][show-upload-date]) .file-name-wrapper {
width: calc(100% - 375px);
width: calc(100% - 385px);
padding-right: 15px;
box-sizing: border-box;
}
Expand Down

0 comments on commit 66a603d

Please sign in to comment.