Skip to content
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

当高度为百分比的时候,不起作用 #26

Closed
SidKwok opened this issue May 9, 2018 · 5 comments
Closed

当高度为百分比的时候,不起作用 #26

SidKwok opened this issue May 9, 2018 · 5 comments

Comments

@SidKwok
Copy link

SidKwok commented May 9, 2018

<template>
    <div id="app">
        <vue-scroll>
            <p v-for="item in 64">yo</p>
        </vue-scroll>
    </div>
</template>

<script>
export default {};
</script>

<style lang="less">
#app {
    height: 50%;
}
</style>

会出现浏览器的滚动条

@wangyi7099
Copy link
Member

wangyi7099 commented May 9, 2018

刚刚调整了下 不用百分比了赋值宽高了。 再试下。
把这个 https://github.com/wangyi7099/vuescroll/blob/dev/dist/vuescroll.common.js
替换 你的node_modules 里面对应的文件即可。

@SidKwok
Copy link
Author

SidKwok commented May 9, 2018

你其实可以release一个新版本

@wangyi7099
Copy link
Member

恩 我知道 这是个特性 还需要调整下 然后再发布版本。

@SidKwok
Copy link
Author

SidKwok commented May 9, 2018

ok 发了之后你可以直接吧这个issue关了

@wangyi7099
Copy link
Member

好的

wangyi7099 added a commit that referenced this issue Jun 5, 2018
* refactor: code structure

* tweak: readme

* tweak: demo style

* tweak: readme

* fix: rail's borderradius cannot be dynamiclly set

* tweak: dynamically set data

* fix: internalscrollTop should default to 0

* tweak: the position of preventDefault options in global-config.js

* perf(touch): optimize scroll experience

* tweak: readme

* buid: release 4.5.13

* changelog

* chore: format code with prettier

* tweak: manully add height or width to vuescroll elm  when mounted

* build: release 4.5.14
Feature:
  Add sizeStrategy option for vuescroll  To decide use a numberic size  or
  a percent size for vuescroll while parent dom's size maybe a numberic
  value or a percent value
close #26

* build: release 4.5.15
Hot Fix:
Vuescroll's width and height should default to `100%` in case of getting
an  incorrect size in slide mode .

* tweak: bar/rail width/height default from 5px to  6px

* tweak: readme.md
WIP: refactor unit test module

* tweak: readme
WIP: refactor unit test module

* chore: add unit test

* tweak: ci

* tweak: ci

* tweak: ci

* tweak: ci

* build: release 4.5.16
chore:
add unit test
fix:
window onresize may throw an error

* fix: typo

* fix: rename comonent to component

* tweak: readme

* chore: delete useless files

* tweak: Supplement Readme

* tweak: readme

* tweak: readme

* tweak: readme

* tweak: readme

* tweak: readme

* tweak: readme

* tweak: readme

* tweak: readme

* tweak: readme

* tweak: readme

* tweak: inspired link in readme

* tweak: readme

* tweak: image in readme

* tweak: readme-zh

* tweak: readme

* feat(api): Add scrollIntoView api that allows you scroll an elment into view

* build: 4.5.17

* changelog

* tweak: readme

* tweak

* tweak

* tweak

* tweak

* tweak readme

* update inspire

* fix: get incorrect hash when component mounted

* build: 4.5.18

* changelog

* chore: tweak indent

* fix: incorrect bar position when there is a error of scrollHeight in browser

* chore: fix broken demo link

* chore: strip license ext

* perf(scrollbar): make the position of scrollbar more accurate

* build: 4.5.19

* chore: changelog

* 4.5.20

* fix: update bar when mouse enters or moves

* build: 4.5.21

* changelog

* chore: tweak the intro of vuescroll in readme

* perf(bar): refactor bar and rail

* build: 4.5.22

* chore: changelog

* chore: delete deprecated config

* build: 4.5.23
fix: Vuescroll cannot detect scroll  when parent dom's size is not a fixed value
(#29)

* chore: changelog

* chore: fix typo

* tweaks: readme

* feat(bar): support dragging in mobile

* build: 4.5.24

* chore: changelog

* build: 4.5.25
tweaks:
Wrap `isSupportTouch` by a function to pass ssr exam

* build: 4.5.26
tweaks: Call e.preventDefault when dragging the bar.

* feat(bar): Add showDuration to controll the show time of bars

* fix(silde-mode): what scroll-panel's display style is inline-block  may
disrupt content style (@30)

* fix(silde-mode): what scroll-panel's display style is inline-block  may
disrupt content style (#30)

* buid: 4.5.27

* chore:changelog

* teeaks: changelog

* tweaks: readme

* tweak: readme

* tweak: readme

* fix: typo in createPanel.js

* feat: Support customize svg in pull-refresh or push-load

* build: 4.5.29

* chore: changelog

* chore: changelog

* fix: The content height while push-load is enable

* build:4.5.30

* chore: changelog

* tweak: set 100% when vbar's size is 0

* update issue templates

* fix: add min-width to scrollPanel, scrollContent(#32)

* build: 4.5.31

* chore: changelog

* fix lint

* fix: update bar in setTimeout (#31)

* feat(api): add triggerRefreshOrLoad Api that you can trigger refresh or load directly

* build: 4.5.32

* changelog

* chore: wx.png

* fix typo

* fix: don't call complete while __isDecelerating is false

* feat: add `direction info for event handle`

* build: 4.5.23

* chore: changelog

* tweaks readme

* chore: change website address

* tweak: readme

* chore: tweak shields address

* tweak: readme (#34)

* fix: add z-index to rail

* build: 4.6.0

* chore: changelog

* feat: add border-radius to rail

* 4.6.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants