ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.7k stars 1.07k forks source link

Spreadsheet freezes wrong row if other hidden rows exist #2309

Open HectorB-2020 opened 1 year ago

HectorB-2020 commented 1 year ago

This issue is unique.

Operating System

Windows 10 / 8.1 / 7

Version information

7.2.1.36

Expected Behavior

The top visible row is frozen regardless of how many other rows are hidden above. This is the behaviour which I observe in MS Word. And there is a strong rationale for that.

Actual Behavior

In spreadsheets with hidden top rows, Freeze Top Row disregards the fact that all rows above are hidden and the first visible row must be frozen instead. The application still freezes the first row which is hidden like I said. Nobody cares hidden rows If one needs to lock the first visible one.

Reproduction Steps

Let's have a sample spreadsheet. Please note that the first three colorful rows intentionally don't contain anything "useful", they rather serve like a multi-row title. Something "useful" begins in row four. OO-Freeze1

Now we are hiding these the first three rows: right click, Hide. OO-Freeze2

And finally we are trying to freeze the top row. Menu Freeze Panes, Freeze First Row. OO-Freeze3

Try scrolling the sheet - in vain :disappointed: - the forth row is not locked. Seems like the frozen row is on line one. But who cares the line number one if it's hidden?

Additional information

No response

janxkoci commented 1 year ago

I can reproduce this using both "Freeze Top Row" as well as "Freeze Panes". I expected at least the second one to work, as it should normally freeze at current position of cursor (selected cell), but it's not working either. :confused:

Edit: I was now trying to unhide the three rows and clicked something there in the corner and alas - the 4th row is now correctly frozen. Too bad I dunno how it happened :shrug: Either way - not user friendly at all!

Edit2: Got it - when I unfreeze cells, then click exactly in the top-left corner in a place where the cursor changes to 4-direction arrow - that's the spot where a click will freeze the current top row (i.e. if you scroll down a bit and try, it will freeze there instead of top). Super tricky to do, should be easier for sure.

Edit3: Stupid me, I was using the "Freeze Panes" wrong - I need to put the cursor below the row I want to freeze, not on it :facepalm: Doing it properly works as expected! (In your case it's the 5th row.)

rsnegirev commented 1 year ago

Hi @HectorB-2020 @janxkoci

I can confirm, this is the bug 63527 in our internal issue tracker.

Thank you for the reports.

Rita-Bubnova commented 1 year ago

The issue is actual in DocumentServer.