Xpages视图中的未读标记是缩进的?任何修复

时间:2014-12-01 22:36:09

标签: xpages

在Xpages的视图中放入未读标记,并且列非常奇怪地缩进。 搜索谷歌并找到了这个文件:

http://www-01.ibm.com/support/docview.wss?crawler=1&uid=swg1LO78976

然而,当我尝试登录并实际看到该文档时,我永远无法打开文档。 IBM在Xpages中没有未读的工作???

道歉。

enter image description here

代码在这里:

<xp:viewPanel rows="99" id="ProjectsWorking"
                    viewStyle="width:99.0%" rowClasses="oddrow, evenrow"
                    var="viewEntry" showUnreadMarks="true">
                    <xp:this.facets>
                        <xp:pager partialRefresh="true"
                            layout="Previous Group Next" xp:key="headerPager" id="pager1">
                        </xp:pager>
                    </xp:this.facets>
                    <xp:this.data>
                        <xp:dominoView var="ProjectsWorking"
                            viewName="ProjectsWorking">
                        </xp:dominoView>
                    </xp:this.data>
                    <xp:viewColumn id="viewColumn26"
                        style="width:15.00px" rendered="false">
                        <xp:this.facets>
                            <xp:viewColumnHeader xp:key="header"
                                id="viewColumnHeader26" style="width:15.00px" rendered="false">
                            </xp:viewColumnHeader>
                        </xp:this.facets>
                        <xp:this.iconSrc><![CDATA[#{javascript:var unr = viewEntry.getRead();
if (unr)
{return ""}
else
{"/unread.gif"}}]]></xp:this.iconSrc>
                        <xp:this.value><![CDATA[#{javascript:""}]]></xp:this.value>
                    </xp:viewColumn>
                    <xp:viewColumn columnName="Priority"
                        id="viewColumn1" style="width:15.00px" showCheckbox="true">
                        <xp:viewColumnHeader value="Priority"
                            id="viewColumnHeader1"
                            style="font-weight:bold;text-decoration:underline;width:15.00px"
                            sortable="true" showCheckbox="true">
                        </xp:viewColumnHeader>
                    </xp:viewColumn>
                    <xp:viewColumn columnName="ProjectName"
                        id="viewColumn2" displayAs="link" style="width:150.00px">
                        <xp:viewColumnHeader value="Project"
                            id="viewColumnHeader2"
                            style="font-weight:bold;text-decoration:underline"
                            sortable="true">
                        </xp:viewColumnHeader>
                    </xp:viewColumn>
                    <xp:viewColumn id="viewColumn19"
                        columnName="ProjectCoordinator" style="width:50.00px">
                        <xp:this.facets>
                            <xp:viewColumnHeader xp:key="header"
                                id="viewColumnHeader19" value="Project  Manager" sortable="true"
                                style="font-weight:bold">
                            </xp:viewColumnHeader>
                        </xp:this.facets>
                    </xp:viewColumn>
                    <xp:viewColumn id="viewColumn18"
                        columnName="ITCoordinator" style="width:50.00px">
                        <xp:this.facets>
                            <xp:viewColumnHeader xp:key="header"
                                id="viewColumnHeader18" sortable="true" style="font-weight:bold"
                                value="IT Lead">
                            </xp:viewColumnHeader>
                        </xp:this.facets>
                    </xp:viewColumn>
                    <xp:viewColumn columnName="Scope" id="viewColumn3"
                        style="width:35.00px">
                        <xp:viewColumnHeader value="Scope"
                            id="viewColumnHeader3"
                            style="font-weight:bold;text-decoration:underline"
                            sortable="true">
                        </xp:viewColumnHeader>
                    </xp:viewColumn>
                    <xp:viewColumn id="viewColumn12"
                        columnName="IsWorking" style="width:35.00px">
                        <xp:this.facets>
                            <xp:viewColumnHeader xp:key="header"
                                id="viewColumnHeader12" value="Working?"
                                style="font-weight:bold" sortable="true">
                            </xp:viewColumnHeader>
                        </xp:this.facets>
                    </xp:viewColumn>
                    <xp:viewColumn columnName="DesiredCompletionDate"
                        id="viewColumn4" style="width:50.00px">
                        <xp:this.converter>
                            <xp:convertDateTime pattern="MM/dd/yyyy"></xp:convertDateTime>
                        </xp:this.converter>
                        <xp:viewColumnHeader
                            value="Desired Completion Date" id="viewColumnHeader4"
                            style="font-weight:bold;text-decoration:underline"
                            sortable="true">
                        </xp:viewColumnHeader>
                    </xp:viewColumn>
                    <xp:viewColumn id="viewColumn5"
                        columnName="ProjectStatus" style="width:75px">
                        <xp:this.facets>
                            <xp:viewColumnHeader xp:key="header"
                                id="viewColumnHeader5" value="Status"
                                style="font-weight:bold;text-decoration:underline"
                                sortable="true">
                            </xp:viewColumnHeader>
                        </xp:this.facets>
                    </xp:viewColumn>
                </xp:viewPanel>

1 个答案:

答案 0 :(得分:1)

缩进是由

引起的
.xspDataTableRowRead td:first-child {
    padding-left: 30px;
}

使用应用主题OneUI V3.0.2代替OneUI V2.1(或更早)。然后就没有缩进了。

如果您无法更改应用主题,请使用

覆盖此css设置
.xspDataTableRowRead td:first-child {
    padding-left: 2px;
}