When you quick edit an order on admin/commerce/orders in the bottom of the page, and you close the megarow, the page jumps to the top of the page. It should stay on the order, you just closed.

Comments

jsacksick’s picture

Project: Commerce Kickstart » Views Megarow
Version: 7.x-2.0-rc1 » 7.x-1.x-dev
Artusamak’s picture

Status: Active » Needs review

Indeed, the closing link wasn't catch to avoid the automatic scroll to top.
I pushed a change to scroll to the row that triggered the megarow opening.

If you want to test the change: http://drupalcode.org/project/views_megarow.git/commit/45b8fe60d4e874bed...

checker’s picture

+  // We scroll to 120px above the selected item due to the potential admin bar,

I'm asking if it is possible to modify this value with drupals api. Otherwise it could be really helpful that this value "120px" is variable. Designer often have problems with hard coded styles. What do you think?

Artusamak’s picture

Status: Needs review » Fixed

That's a good idead, I exposed this setting in the plugin settings. Check http://drupalcode.org/project/views_megarow.git/commit/bad2c1a8f9e0b4991...

Thanks guys.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.