Shere
Shere

Reputation: 143

Autosizing row to its content in Webix

I'm using Webix to create a datatable. Some editable rows can contain big fragments of a text and what I need to do is to make it visible in spite of the text length. Is it possible to adjust row height to the size of its content automatically?

For example, here's a short snippet that accompanies my question:

http://webix.com/snippet/993794e9

Upvotes: 3

Views: 808

Answers (1)

user5546512
user5546512

Reputation:

In your view:"datatable" define

on:{
    "onresize":webix.once(function(){ 
      this.adjustRowHeight("title", true); 
    })
  }

Your snippet after my correction http://webix.com/snippet/f17ac179

Upvotes: 5

Related Questions