jarek-foksa / xel

Xel - Widget toolkit for building native-like Electron and Web apps
https://xel-toolkit.org
Other
679 stars 58 forks source link

Unable to change width of x-input #64

Closed Centribo closed 6 years ago

Centribo commented 6 years ago

I have HTML code as such:

<x-input skin="flat" id="search-bar" onkeydown="if(event.keyCode == 13) search()">
    <x-label>Search</x-label>
</x-input>

and CSS code as such:

#search-bar {
    margin-right: 10px;
    width: 1000px;
}

But the bar is still the default size. See here: Image

jarek-foksa commented 6 years ago

Have you tried setting max-width: none;?

Centribo commented 6 years ago

Haha, yep totally forgot to check that. Thanks!