Fixed polymer inputs not showing their titles or their full area

This commit is contained in:
Thaum
2015-04-16 13:21:45 +00:00
parent e6487c9416
commit 1a1ee142c0
5 changed files with 206 additions and 99 deletions

View File

@@ -1,24 +1,14 @@
Template.baseDialog.rendered = function(){
var self = this;
//update all autogrows after they've been filled
var pata = this.$("paper-autogrow-textarea");
pata.each(function(index, el){
el.update($(el).children().get(0));
})
//update all input fields as well
var input = this.$("paper-input");
input.each(function(index, el){
el.valueChanged();
})
Template.baseDialog.onRendered(function(){
updatePolymerInputs(this);
//after the dialog is built, open it
if (!this.alreadyRendered){
Session.set("global.ui.detailShow", true);
this.alreadyRendered = true;
}
}
});
Template.baseDialog.events({
"tap #backButton": function(){
GlobalUI.closeDetail()
GlobalUI.closeDetail();
}
});