I am modified a document library view and try to increase width of one column. I added a script editor web part and added following:
<script type="text/javascript">
$(document).ready(function() {
$("TH.ms-vh2:contains('Title')").css("min-width", "250px");
});
</script>
It works fine at first load. But when I click Quick Edit view, the "title" column width is no longer 250px. When I click back to normal view, the "title" column width is not 250px, too. I think my javascript only load at first time I called the page.
How can I solve it? Thanks.