File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/Files.App/Views/LayoutModes Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 402
402
403
403
<TextBox
404
404
x:Name=" TileViewTextBoxItemName"
405
- Grid.Row=" 0"
406
- Padding=" 5 2 5 2"
405
+ Grid.Row=" 0"
407
406
MaxHeight=" 60"
408
407
HorizontalAlignment=" Left"
409
408
BeforeTextChanging=" ItemNameTextBox_BeforeTextChanging"
Original file line number Diff line number Diff line change @@ -184,11 +184,14 @@ override public void StartRenameItem()
184
184
{
185
185
Popup popup = gridViewItem . FindDescendant ( "EditPopup" ) as Popup ;
186
186
TextBlock textBlock = gridViewItem . FindDescendant ( "ItemName" ) as TextBlock ;
187
+ Grid gridMain = gridViewItem . FindDescendant ( "GridViewBrowserListedItem" ) as Grid ;
188
+
187
189
textBox = popup . Child as TextBox ;
188
190
textBox . Text = textBlock . Text ;
189
191
textBlock . Opacity = 0 ;
190
192
popup . IsOpen = true ;
191
193
OldItemName = textBlock . Text ;
194
+ gridMain . RowDefinitions [ 0 ] . Height = new GridLength ( 0 ) ;
192
195
}
193
196
else
194
197
{
@@ -256,8 +259,11 @@ protected override void EndRename(TextBox textBox)
256
259
{
257
260
Popup ? popup = gridViewItem . FindDescendant ( "EditPopup" ) as Popup ;
258
261
TextBlock ? textBlock = gridViewItem . FindDescendant ( "ItemName" ) as TextBlock ;
262
+ Grid ? gridMain = gridViewItem . FindDescendant ( "GridViewBrowserListedItem" ) as Grid ;
263
+
259
264
popup ! . IsOpen = false ;
260
265
textBlock ! . Opacity = ( textBlock . DataContext as ListedItem ) ! . Opacity ;
266
+ gridMain . RowDefinitions [ 0 ] . Height = GridLength . Auto ;
261
267
}
262
268
else if ( FolderSettings . LayoutMode == FolderLayoutModes . TilesView )
263
269
{
You can’t perform that action at this time.
0 commit comments