Title: "stepSize" attribute is ignored in slider input dialogs using script editor · Issue #205 · scijava/scijava-common · GitHub
Open Graph Title: "stepSize" attribute is ignored in slider input dialogs using script editor · Issue #205 · scijava/scijava-common
X Title: "stepSize" attribute is ignored in slider input dialogs using script editor · Issue #205 · scijava/scijava-common
Description: In imagej/imagej-ui-swing#64 @imagejan mentioned that stepSize attribute is ignored, for example, when calling: // @int(label="test", min="0", max="100", stepSize="10", style="slider") a print(a) Notice that there is another bug here, wh...
Open Graph Description: In imagej/imagej-ui-swing#64 @imagejan mentioned that stepSize attribute is ignored, for example, when calling: // @int(label="test", min="0", max="100", stepSize="10", style="slider") a print(a) N...
X Description: In imagej/imagej-ui-swing#64 @imagejan mentioned that stepSize attribute is ignored, for example, when calling: // @int(label="test", min="0", max="100", stepSize=&quo...
Opengraph URL: https://github.com/scijava/scijava-common/issues/205
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"stepSize\" attribute is ignored in slider input dialogs using script editor","articleBody":"In https://github.com/imagej/imagej-ui-swing/issues/64\n\n@imagejan mentioned that stepSize attribute is ignored, for example, when calling:\n\n```\n// @int(label=\"test\", min=\"0\", max=\"100\", stepSize=\"10\", style=\"slider\") a\nprint(a)\n```\n\nNotice that there is another bug here, which is that min/max must be specified or it will hang the program.\n\nAfter some investigation, it seems that this is due to some [known bug](https://github.com/scijava/scijava-common/blob/f1d2b4d1b733689e34ab578ec0656c88675d3ffc/src/main/java/org/scijava/script/ScriptInfo.java#L474-L477) as there is a \"FIX ME\" in the code. \n\nI think the reason to this bug is that there is no converter that converts String to Number in Scijava right now. We could create such converter. But I don't understand why we want to [use Number as the type for stepSize](https://github.com/scijava/scijava-common/blob/35163f8e93e526ab75f710f014f4600ded4398b4/src/main/java/org/scijava/module/MutableModuleItem.java#L73). If the input is an `int`, then max/min/stepSize should all be `int`, right? Same should apply to `double` `long` etc. Then we can just use `item.getType` as the type to parse the stepSize String given. @ctrueden \n","author":{"url":"https://github.com/lnyng","@type":"Person","name":"lnyng"},"datePublished":"2015-11-19T22:50:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/205/scijava-common/issues/205"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:643b22c1-34bb-5074-f8a2-94bd3a0a16c3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD52:A39F5:E3CFA7:137BCD7:696A92C7 |
| html-safe-nonce | 86e4e436b29f887479cc73fba7bd85e0cbdb84703ba94c5e601202ae3dd59783 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDUyOkEzOUY1OkUzQ0ZBNzoxMzdCQ0Q3OjY5NkE5MkM3IiwidmlzaXRvcl9pZCI6IjQ5NTQ4NDMzNDAyNjQyOTEyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 168396ca508e108b81101bc4bc3063f8948d1c6f4ff0285cf32b72e248c4d01c |
| hovercard-subject-tag | issue:117926971 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/scijava-common/205/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9a818d60cfe8db8b6e958d244e4c8d9cb38b9db6ac491e52030f289dbe999d89/scijava/scijava-common/issues/205 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9a818d60cfe8db8b6e958d244e4c8d9cb38b9db6ac491e52030f289dbe999d89/scijava/scijava-common/issues/205 |
| og:image:alt | In imagej/imagej-ui-swing#64 @imagejan mentioned that stepSize attribute is ignored, for example, when calling: // @int(label="test", min="0", max="100", stepSize="10", style="slider") a print(a) N... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lnyng |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7 |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/scijava-common git https://github.com/scijava/scijava-common.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 3594497 |
| octolytics-dimension-repository_nwo | scijava/scijava-common |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3594497 |
| octolytics-dimension-repository_network_root_nwo | scijava/scijava-common |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 31496a13b80a2f6ad77d6c617ee2255a3545b539 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width