Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Fix SectionList hovering issue #4749

Merged
merged 4 commits into from
Mar 7, 2017
Merged

Fix SectionList hovering issue #4749

merged 4 commits into from
Mar 7, 2017

Conversation

ngotchac
Copy link
Contributor

@ngotchac ngotchac commented Mar 3, 2017

Fixes issue where items stretch on a SectionList line while hovering the line but on no item (thus when on a line with < 3 items): eg. in Accounts, Dapps...

Closes https://github.com/ethcore/parity/issues/4665

@ngotchac ngotchac added A0-pleasereview 🤓 Pull request needs code review. M7-ui A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 3, 2017
@ngotchac ngotchac added A0-pleasereview 🤓 Pull request needs code review. and removed A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. labels Mar 3, 2017
}
}
}
.item.stretchOn:hover {
Copy link
Contributor

@jacogr jacogr Mar 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a reason for the shrinking. When the name (Title) is at exactly 33% and you hover over the row the affected item does not shrink and go into text-overflow, rather the browser just shrinks the other card, so you end up with one tiny, one normal and one big. (Chrome)

This is the original implementation, sadly the simplest, sadly broken in edge-cases due to what I think is a browser bug.

@jacogr jacogr added A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 3, 2017
@ngotchac
Copy link
Contributor Author

ngotchac commented Mar 7, 2017

Again, I played with all lengths of titles and all, and could not find any bug... Please be a bit more specific if possible

@ngotchac ngotchac added A0-pleasereview 🤓 Pull request needs code review. and removed A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. labels Mar 7, 2017
@jacogr
Copy link
Contributor

jacogr commented Mar 7, 2017

Will need to do it after the release crunch is over - will first need to create the issue (as it manifested, could probably mean rolling back to be 100% sure it is what it is) and then go from there.

As I said very valid as to why, what the specific circumstances are need to find again. Simpler is always better, which is why we started exactly where you are atm. Also possibly other changes could have squashed it, with no need for the work-around anymore. (So either way, rooting for this, just not taking any risks.)

@jacogr
Copy link
Contributor

jacogr commented Mar 7, 2017

Ok, did a hacky rollback to an old local WIP branch. My ropsten chain still had problematic instances (under vaults), so got lucky. Something changed somewhere in the containers, even with the 33.33% original, no original non-stretches when updated.

However could also spot what you meant with "strange overflow issues, hence the 0 width". (e.g. some additional cases where issues crops up, tested this with accounts - obviously easier since the names are editable)

So we seems to cater for both, happy that original/simple can be back.

@jacogr jacogr added A8-looksgood 🦄 Pull request is reviewed well. B0-patch and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 7, 2017
@jacogr jacogr merged commit 48e5d82 into master Mar 7, 2017
@jacogr jacogr deleted the ng-fix-sectionlist-hover branch March 7, 2017 21:03
jacogr pushed a commit that referenced this pull request Mar 7, 2017
* Fix SectionList Items hover when <3 items

* Even easier...
@jacogr jacogr mentioned this pull request Mar 7, 2017
arkpar pushed a commit that referenced this pull request Mar 8, 2017
* Update Wallet to new Wallet Code (#4805)

* Update Wallet Version

* Update Wallet Library

* Update Wallets Bytecodes

* Typo

* Separate Deploy in Contract API

* Use the new Wallet ABI // Update wallet code

* WIP .// Deploy from Wallet

* Update Wallet contract

* Contract Deployment for Wallet

* Working deployments for Single Owned Wallet contracts

* Linting

* Create a Wallet from a Wallet

* Linting

* Fix Signer transactions // Add Gas Used for transactions

* Deploy wallet contract fix

* Fix too high gas estimate for Wallet Contract Deploys

* Final piece ; deploying from Wallet owned by wallet

* Update Wallet Code

* Updated the Wallet Codes

* Fixing Wallet Deployments

* Add Support for older wallets

* Linting

* SMS Faucet (#4774)

* Faucet

* Remove flakey button-index testing

* Only display faucet when sms verified (mainnet)

* simplify availability checks

* WIP

* Resuest from verified -> verified

* Update endpoint, display response text

* Error icon on errors

* Parse hash text response

* Use /api/:address endpoint

* hash -> data

* Adjust sms-certified message

* Fix SectionList hovering issue (#4749)

* Fix SectionList Items hover when <3 items

* Even easier...

* lint (new)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants