angular-ui/ui-grid

Multi-Column Header Experiment Help -- Parent column width stretches child column

已關閉

#3,694 建立於 2015年6月4日

 (7 則留言) (0 個反應) (0 位負責人)JavaScript (2,496 個分叉)batch import
good first issuetype: enhancement

倉庫指標

星標
 (5,395 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Here is my plunker: http://plnkr.co/edit/fsJdENoN1ll4FUGsPzts?p=preview

I am trying out what's described here: http://stackoverflow.com/questions/29564283/any-better-approaches-in-achieving-multi-column-grouping-in-ui-grid-header

When I manually set the min and max column with on the "parent" column:

<div class="ui-grid-header-cell ng-scope" col-name="group2">
                            <div class="ui-grid-cell-contents ng-binding" style="min-width: 220px; max-width: 1000px;">Group 2</div>

It stretches the "child" column as well (the Title column is stretched). How can I "break" the association? Or how can I achieve multi-column header manually?

Thanks.

貢獻者指南