【クライアント】セルの編集中にSPREAD外をクリックするとページがスクロールする場合がある
対象製品
SPREAD for .NET 2.5J Web Forms Edition
発生環境
動作保証環境と同様
状況
修正済み
詳細
SPREADをtableなどのコンテナ内に配置し、セルの編集中にSPREAD外のコンテナ部分をクリックした場合、ページがスクロールします。
【手順】
1.新規WebフォームにSPREADとlabelを以下のように配置します。
<form id="form1" runat="server">
<div>
<table width="700px" height="600px" style="position: relative">
<colgroup>
<col width="180px"/>
<col />
</colgroup>
<tr height="100%">
<td height="100%" valign=top>
<asp:Label ID="Label1" runat="server" Text="Label1" BackColor="#FFC0FF" Height="600px" Width="180px"></asp:Label>
</td>
<td height="100%" valign=top style="position: relative">
<div style="position: relative">
<asp:Label ID="Label2" runat="server" Text="Label2" Height="200px" BackColor="#C0C0FF"></asp:Label><br />
<FarPoint:FpSpread ID="FpSpread1" runat="server" BorderColor="Black" BorderStyle="Solid"
BorderWidth="1px" Height="200" Width="400">
<CommandBar BackColor="Control" ButtonFaceColor="Control" ButtonHighlightColor="ControlLightLight"
ButtonShadowColor="ControlDark" />
<Sheets>
<FarPoint:SheetView SheetName="Sheet1">
</FarPoint:SheetView>
</Sheets>
</FarPoint:FpSpread>
</div>
</td>
</tr>
</table>
</div>
</form>
2.アプリケーションを実行します。
3.ページを下方向にスクロールし、SPREADのセルを編集状態にします。
4.セルが編集状態のまま、Label1とLabel2の間をクリックします。
--- ページが上方向にスクロールします。
【手順】
1.新規WebフォームにSPREADとlabelを以下のように配置します。
<form id="form1" runat="server">
<div>
<table width="700px" height="600px" style="position: relative">
<colgroup>
<col width="180px"/>
<col />
</colgroup>
<tr height="100%">
<td height="100%" valign=top>
<asp:Label ID="Label1" runat="server" Text="Label1" BackColor="#FFC0FF" Height="600px" Width="180px"></asp:Label>
</td>
<td height="100%" valign=top style="position: relative">
<div style="position: relative">
<asp:Label ID="Label2" runat="server" Text="Label2" Height="200px" BackColor="#C0C0FF"></asp:Label><br />
<FarPoint:FpSpread ID="FpSpread1" runat="server" BorderColor="Black" BorderStyle="Solid"
BorderWidth="1px" Height="200" Width="400">
<CommandBar BackColor="Control" ButtonFaceColor="Control" ButtonHighlightColor="ControlLightLight"
ButtonShadowColor="ControlDark" />
<Sheets>
<FarPoint:SheetView SheetName="Sheet1">
</FarPoint:SheetView>
</Sheets>
</FarPoint:FpSpread>
</div>
</td>
</tr>
</table>
</div>
</form>
2.アプリケーションを実行します。
3.ページを下方向にスクロールし、SPREADのセルを編集状態にします。
4.セルが編集状態のまま、Label1とLabel2の間をクリックします。
--- ページが上方向にスクロールします。
回避方法
2009/05/27版で修正済み。
キーワード
SPRN07135
この文書は、以前は次のバグレポートIDで公開されていました : 7949