-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scroll for typeahead #1195
Closed
Closed
scroll for typeahead #1195
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
b9c5adc
initial
arins 1c70e3d
Fix scrollable autocomplete
arins d1829fa
change lineending to unix style and passed lint test
arins 5cd1d03
Change name of package to symbrio-ng2-bootstrap
4bddb0b
Merge branch 'development' of https://github.com/arins/ng2-bootstrap …
c1231e7
build error
arins 275c9ba
Merge branch 'development' of https://github.com/arins/ng2-bootstrap …
arins db0c9f5
fixed scroll in most common browsers
arins d64d774
fixed so that scroll disapears on elements match less than scrollsize
arins 9586760
fixing unit test and checking in new version
arins 0c4c5c4
fixed unittests and lint errors
arins 52c0b37
change version back and fixed binaries
arins 2e990ff
fixed .gitattributes
arins e88608f
name chagned back!
arins aebe206
Merge branch 'development' of https://github.com/valor-software/ng2-b…
arins 004cdcd
added more covare to unittests
arins 8bcb34c
ignore unittest for height
arins fcc1254
added unittests for position spec to increase code coverage
arins 070f395
fixed unittesting
arins e83e396
fxied lint error
arins 111d6c7
more unittests
arins c74e26a
more branch testing
arins 8647c81
fixed empty block tslint error
arins c3990a5
tried to fix more unittests
arins ca0b8cc
more unittests
arins 835d648
added even more unittest
arins File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
core.autocrlf=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { positionService } from './position'; | ||
|
||
describe('positionService', () => { | ||
it('should give correct hight', () => { | ||
const div = document.createElement('div'); | ||
div.style.height = '10px'; | ||
div.style.padding = '0px 0px'; | ||
div.style.border = '0px 0px'; | ||
document.body.appendChild(div); | ||
expect(positionService.getStyle(div, 'height')).toBe('10px'); | ||
div.remove(); | ||
}); | ||
|
||
it('should be focused', () => { | ||
const input = document.createElement('input'); | ||
input.setAttribute('type', 'text'); | ||
|
||
document.body.appendChild(input); | ||
input.focus(); | ||
expect(positionService.isFocused(input)).toBe(true); | ||
input.remove(); | ||
}); | ||
|
||
it('should give offset', () => { | ||
const input = document.createElement('input'); | ||
input.setAttribute('type', 'text'); | ||
input.style.border = '0px'; | ||
input.style.padding = '0px 0px'; | ||
input.style.height = '20px'; | ||
document.body.appendChild(input); | ||
let offsetShouldBe = parseInt(positionService.getStyle(document.body, 'margin-top').replace('px', ''), 10) + | ||
parseInt(positionService.getStyle(document.body, 'padding-top'), 10) + | ||
parseInt(positionService.getStyle(document.body, 'border-top-width'), 10); | ||
expect(positionService.offset(input).top).toBe(offsetShouldBe); | ||
input.remove(); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong.